Web Control Shortcuts and HTML Snippets in Visual Studio

Consider a feature in Visual Studio 2010 for snippets in the HTML Source view of a web page.

enter the name of the control in clear text without markup or brackets! ... eg. hyperlink

enter image description here

Then press tab

enter image description here

Your web control has been automatically performed for you. This is for you to fill out the other details that you need.

This works for form :

  <form action="default.aspx" method="post"> </form> 

It looks like a real time saver. This is supported by WebForms and ASP.NET MVC projects.

What other snippets are available in Visual Studio 2010 in the Source view on the page?

+4
source share
3 answers

For an authoritative list of fragments, check out the VS2010 installation folders in which fragments are stored:

 C:\Program Files\Microsoft Visual Studio 10.0\Web\Snippets\HTML\1033 

There is one folder for ASP.NET and one for simple HTML snippets.

In addition, if you use jQuery a lot, a set of jQuery snippets that you can also add to Visual Studio.

+4
source

Here is the tone (100) of short cuts in Visual Studio directly from MSDN:

http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx

The only thing that was around forever, but many people forget about choosing a block while holding down the ALT key, and use the mouse to select a block of text. Great if you want to copy / cut / delete a bunch of code that is lined up, but you don't need a whole line.

+2
source

Yes, this is a really cool new set of snippets in VS2010. Here are the articles I used to study:

0
source

Source: https://habr.com/ru/post/1311136/


All Articles