在Visual Studio 2008中,有没有办法创建和管理CSS和HTML代码片段?

时间:2022-12-18 01:33:13

Does anyone know of a way to add css and html code snippets to Visual Studio 2008?

有谁知道一种方法将CSS和HTML代码片段添加到Visual Studio 2008?

I love my C# snippets, and HTML/CSS snippets would save a ton of time.

我喜欢我的C#片段,HTML / CSS片段可以节省大量时间。

1 个解决方案

#1


You can simply mark a piece of HTML/CSS code and drag it into the toolbox. Then rename the snippet in the toolbox and give it a name so you can easily remember what it is.

您只需标记一段HTML / CSS代码并将其拖到工具箱中即可。然后重命名工具箱中的代码段并为其命名,以便您可以轻松记住它的内容。

Then just drag&drop it from the toolbox onto another page to insert the snippet.

然后将其从工具箱拖放到另一个页面以插入代码段。

(Maybe first create a separate group in the toolbox for your snippets).

(也许首先在工具箱中为您的代码段创建一个单独的组)。

#1


You can simply mark a piece of HTML/CSS code and drag it into the toolbox. Then rename the snippet in the toolbox and give it a name so you can easily remember what it is.

您只需标记一段HTML / CSS代码并将其拖到工具箱中即可。然后重命名工具箱中的代码段并为其命名,以便您可以轻松记住它的内容。

Then just drag&drop it from the toolbox onto another page to insert the snippet.

然后将其从工具箱拖放到另一个页面以插入代码段。

(Maybe first create a separate group in the toolbox for your snippets).

(也许首先在工具箱中为您的代码段创建一个单独的组)。