I use Visual Studio's "Code Snippet" feature pretty heavily while editing c# code. I always wished I could use them while typing out my aspx markup.
Is there a way to enable code snippet use in an aspx file editor window?
Are there any third party tools that perform this?
If you're familiar with code snippet definitions, this is exactly the type of thing I want to do:
<asp:TextBox ID="$var$TextBox" Text="$text$" OnClick="$var$_Click" runat="server" />
I could activate the snippet, tab twice, and move on!
Perhaps you might think of trying Coderush which has a lot more to offer than the basic snippets found in VS. It's template facility can operate in vb, cs, aspx, html, xml and sql files.
That would be brilliant! I'd recommend the world's simplest code generator, or CodeSmith, or maybe T4 (although I haven't tried it yet). Doesn't quite do what you'd like, but it does make it a little easier
CodeRush Express is now free, you can download it from this link
At PDC 2008, Jeff King from Microsoft showed a demo of the HTML Snippets feature coming out in the next Visual Studio 2010. However, I put in another vote for CodeRush which is more powerful and you can use it now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With