Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CodeRush Tricks of the Trade [closed]

I recently installed the Xpress version and went on a similar hunt. This cheat-sheet is what I found so far. The XPress version is pretty gimped BTW so I'm trying to get funding for a license.


I use these a lot:

  • / will comment or uncomment highlighted blocks of code.

  • b will wrap a highlighted selection in braces.

  • Ctrl + 3 will wrap a selection into a region.

  • tc will generate a try/catch block.

  • mbs will write a MessageBox.Show(""); and drop the cursor in the quotes.

  • cws will do the same but with Console.Writeline.

  • m will create a method block (ms would do a method block that returns type string).

  • . will make a comment block.


NumPad+Plus widens the scope of your selection one level.

Try it. It's sublime :)


F2 - Rename

Strictly this is a RefactorPro shortcut as the Rename functionality is for RefactorPro. (However since RefactorPro is included in the Price of CodeRush that should not be an issue)

It is also, I think, Disabled by default.

You should be able to use the DevExpress\Options...\IDE\Shortcuts screen to search for F2 and re-enable it.

Very natural to rename Vars and Methods using F2 when you're already used to F2 functionality for Files and Folders in Explorer.