How can I use the Visual Studio "Code Snippet" function when editing an .aspx file?

I am very good at using Visual Studio "Code Snippet" when editing C # code. I always wanted me to be able to use them by typing my aspx markup.

Is there a way to enable the use of a code snippet in an aspx file editor window?

Are there any third party tools that do this?

If you are familiar with the definitions of a code snippet, this is exactly what I want to do:

<asp:TextBox ID="$var$TextBox" Text="$text$" OnClick="$var$_Click" runat="server" /> 

I could activate the fragment, the tab twice and move on!

+7
c # visual-studio
source share
6 answers

Perhaps you might consider trying Coderush , which can offer much more than the base fragments found in VS. This template tool can work in vb, cs, aspx, html, xml and sql files.

+2
source share

It would be great! I would recommend the world of the simplest code generato or CodeSmith, or maybe T4 (although I haven't tried it yet). Doesn't quite do what you want, but it makes it a little easier

+2
source share

CodeRush Express is now free , you can download it from the link

+2
source share

At PDC 2008, Jeff King of Microsoft demonstrated a demonstration of the HTML snippet feature introduced in the next Visual Studio 2010. However, I added another voice for CodeRush, which is more powerful, and you can use it now.

+2
source share

Since I cannot afford $ 249 for CodeRush, I started creating a VisualStudio add-in.

This guy has already done this for me: http://ardentdev.com/blog/index.php/aspxedithelper

+1
source share

@ Rory-Becker Koderush - exactly what I was looking for!

Earlier I wrote that Coderush costs $ 99, but it costs $ 249.

@harriyott

Codesmith has something called Active Snippets. It only comes with a professional version that costs $ 399.

http://www.codesmithtools.com/features/comparison.aspx

0
source share

All Articles