ASPX Edit Add-In For Visual Studio 2010
One of my favourite Visual Studio helper add-ins is ASPX Edit Helper Add-In For Visual Studio. It’s a great helper that saves loads of typing time when writing ASP.NET pages in Visual Studio.
Unfortunately (as of April 2010), it doesn’t work with Visual Studio 2010:(
So, rather than moan and whine, as the source code is available, I decided to port it over to Visual Studio 2010.
Attached are the 2 files (source and binary) that now work with VS 2010.
Please see the installation instructions here. The only difference is that I would suggest installing these files under your Documents/Visual Studio 2010/Addins folder.
Thanks to the guys at ArdentDev for the original add-in helper.
Hope that you find this conversion helpful.
Note: Binaries include debug and release builds. Release build supresses any debug/exception alerts. If the add-in is not working for you, please install the debug version and post the details of exception popups on this page so that I can investigate /fix.
If you like this, please leave star rating and/or comment.
No related posts.






Hey, Rowland, thanks for doing this!
Derek,
You are very welcome.
Your add in has saved me many hours of typing over the last few years so I’m happy to return the favor.
Best,
Rowland
Rowland,
Thanks bunches!!!!
**New release (1.0.0.1)**
Version 1.0.0.1 fixes the following issues:
- spuriously not working
Still getting errors
Hi Karl,
Darn. Thought I’d fixed everything.
What’s happening?
Thank you very much for porting this great addin – I’m having some difficulties with it however.
When I try to use one of the snippets by typing for instance “<asp:Button" and then hitting enter twice, I get an:
"The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))"
Hope this is fixable – I would hate to have to go without this addin
It might be worth mentioning that not all snippets fails. Button and TextBox fail while e.g. RadioButton and Label works fine.
Hi Jacob,
Are you running the latest version (1.0.0.1)?
The errors that you describe happened a lot in the previous version but should now be fixed.
Just tried “<asp:Button” + Enter twice here and it seems to be working ok with 1.0.0.1.
The 1.0.0.1 is the only version I’ve tried – and I’m sorry to say it’s not quite working for me
Ok Jacob,
Hmm..
Trying hard (15 minutes bashing keyboard in ASPX file) to re-create the problem here but no luck.
I’m looking at the source now and there is only one place it could create the error message you describe.
As I’m not able to re-create the error here it makes it difficult to fault-find. Therfore, I’m thinking of knocking out the error notifications completely and let it fail silently..Here comes 1.0.0.2;) Give me a day or so to recompile & upload.
Thank you very much! It would be great if you could just silence the error code as it doesn’t seem to do anything of much importance.
Thank you so much for this!
**Version 1.0.0.2 RELEASED**
NOTES
Some users were reporting spurious popup error messages. I’ve not been able to reproduce these errors here but have added one code fix for potential null reference exceptions produced at End Of Line (EOL).
These are now 2 binary builds.
“Release”:
This has all exception / error popups supressed. This is the version that you should install initially.
“Debug”:
If the add-in is not working for you, please install this version as it has all debug popups / messages enabled. It would be really helpful if you could post the messages that you see on this page so that I can identify and fix your problems:)
When I took this on, I didn’t realize how much Microsoft had changed the way that the editor works in VS2010. These changes are why Dereks original add-in stopped working and why it’s taking some time to iron out the bugs in my port.
Thanks for the feedback so far. Keep it coming!
Thank you very much Rowland! It works like a charm now without any popup messags.
You’re the greatest!
When I copy the three files ( AspxEditHelper.AddIn, AspxEditHelper.dll, AspxEditHelperSnippets.xml) to Documents/Visual Studio 2010/Addins folder I get an error on startup. Error: The Add-in ‘ASPX Edit Helper (VS 2010) – v1.0.0.2′ …failed to load or caused an exception…Error Message: Error number: 80131515.
I’m working with version 10.0.30319.1 RTMRel.
Thank you
This is probably due to some of the files being marked as having come from an untrusted zone (i.e. zip file). You can unblock the files using the property menu in explorer.
You are right; that solved my problem. Thank you.
Great that this functionality is back in VS 2010.
VA:F [1.9.3_1094] please wait... Rating: 0.0/5 (0 votes cast)
Unfortunately it does not work the same way as in 2008, at least on my machine.
Typing
BTW: By default VS 2010 does already include part of the functionality.
Unfortunately the default expand mechanism does NOT generate an ID at all.. Is this a bug?
Thanks
Thanks Ron.
The ID focus feature was dropped as:
- Getting it working was taking a lot of (unproductive) time
- I felt that it was better to release something that was 95% working rather than nothing at all
The editor in VS2010 is vastly different in behavior to 2008, particularly the way in which start and end positions of text are indentified and then selected.
It’s unlikely that I’ll get around to fixing this due to an ever increasing list of client work obligations.
The source code is available if someone would like to have a crack at it:)