VS2010 - shortcuts for web controls and HTML snippets

Posted by p.campbell on Stack Overflow See other posts from Stack Overflow or by p.campbell
Published on 2010-05-27T20:27:05Z Indexed on 2010/05/27 20:31 UTC
Read the original article Hit count: 179

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

type a control name in plaintext with no markup or brackets! ... e.g. hyperlink.

alt text

Then hit Tab

alt text

Your web control has been auto-completed for you. It's up to you to fill in the other details that you need.

This works for form as well:

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

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

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio-2010