CodeRush Tricks of the Trade [closed]

2019-01-30 00:36发布

I was using CodeRush quite while ago and now I'm planning to use it again. I've installed the trial but I forgot all the cool features except Alt + Home (drop a marker). And when you don't know some cool tricks it's really like burning money (since it's not cheap for personal use).

What do you like about it? What are your best features?

My best feature is marker: Alt + Home (and use escape to go back)

P.S.: Dear DevExpress, if you think I helped you by asking this question I can accept some donations, a free license of CodeRush would be nice!

Currently What I like most

  • p s space / p i space, etc. templates to create properties.
  • c c space to create constructors.
  • Pressing Tab to navigate between references to identifiers.
  • Shift + F12 to find references in new cool window.
  • Ctrl + Shift + . for recent files.
  • Ctrl + Shift + Q for jumping to any function / class.
  • f e space / p i space for "for loops".

11条回答
迷人小祖宗
2楼-- · 2019-01-30 01:04

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.

查看更多
虎瘦雄心在
3楼-- · 2019-01-30 01:09

Inside VS.NET

Press "Ctrl + Shift + Alt + O" will list all the DX Options (and putting shortcuts in the search box will bring you to the keyboard bindings)

查看更多
家丑人穷心不美
4楼-- · 2019-01-30 01:11

rt / rf = For Return True and False

查看更多
相关推荐>>
5楼-- · 2019-01-30 01:11

CR_MetricShader: is a free open source plugin for CodeRush or CodeRush Xpress which will allow you to see visually when your method's complexity is getting out of hand.

It alters the background color of your method to indicated severity with respect to your chosen Metric.

Works with the built in metrics of CodeRush (and the hidden ones in CodeRush Xpress) aswell as being compatible with any you might choose to create yourself.

查看更多
Melony?
6楼-- · 2019-01-30 01:16

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.

查看更多
爷的心禁止访问
7楼-- · 2019-01-30 01:18

This is an old post on the DevExpress Coderush Forum:

In it is a setting suggestion by Mark Miller to enhance the default "Embed in Parenthesis" feature of CodeRush.

Once in place ... highlight some text and hit '('. your selection will be wrapped in Parenthesis and more importantly your caret will be on the left of the selection. (Similar applies to the Right Parenthesis)

Ideal for VB.Net users to use alongside CInt, CStr etc

查看更多
登录 后发表回答