Sunday, December 28, 2008

Visual Studio 2k8 ideas

Ideas for a plug-in for Visual Studio 2k8 - if anyone is interested in OSS'ing this then let me know!


1. Click on a variable and convert it to a with block (probably needs to work on the selection)
2. Organise imports - like the C# one - and can remove anything that is no longer needed
4. Rename that works through to an aspx/ascx page and therefore the .designer files as well
5. Go to declaration on a control takes you to the HTML source
6. Navigate from the code to the HTML designer view

Lutz Roeder's Reflector suggestions

Ideas for Lutz Roeder's reflector which I'll get around to sending to him at some point:

* Use of the new "If" function rather than "Iif" if VB

* When variable names use reserved words they should be wrapped in []

* When dividing integers the integer divide operator should be used

* In places code generated takes the form of
New XYZ isn't valid - needs to be put into a variable
But that doesn't recreate the correct reversal of code

* use of new construct and set method doesn't seem to work properly - missing the " with " operator

* use of AscW and ChrW rather than char constructor and type conversion

* x = y = 1 construct not translated correctly

* friend property get's incorrectly become get_XXX functions

* catch xyz As Object isn't valid syntax