Featured Post

Hub City NUG – August 26th, Visual Studio Tips and Tricks with S

The first meeting for Hub City NUG will be held on August 26th on the campus of the University of Southern Mississippi at the Liberal Arts Building Room 205 starting at 7:00 PM with refreshments starting at 6:30 PM.  The topic for this month is “Visual Studio Tips and Tricks”!  Our presenter, Sara...

Read More


Refactoring CSS and Javascript using Coderush/Refactor

Posted by Keith Elder | Posted in CodeRush | Posted on 02-03-2010

Did you know you can use the Visual Studio plugin CodeRush/Refactor in .ASPX pages as well as within JavaScript? It is something that isn’t demoed a lot but yes, it works!

Here’s a sample of me highlighting some inline styles and pressing the refactor key (I have mine bound to ctrl+(num plus) key). 

image

Creates this automatically by adding it to my styles.

clip_image004

Press escape after you type in the name you want to jump back to the marker where you were.

And you can also refactor JavaScript with Coderush/Refactor so don’t forget to hit that refactor binding and see what’s possible.

image