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条回答
Lonely孤独者°
2楼-- · 2019-01-30 01:19

Search for Type

QuickNav (Ctrl+Shift+Q) can be a bit excessive at times....

If you know you're looking for a Type, bind Ctrl+T to QuickNav using additional params of "AllTypes,, AllVisibilities, CurrentSolution" (without quotes)

This will allow you to search for only Types in the current solution

These params can be tweaked to your liking. See http://community.devexpress.com/forums/p/66380/225556.aspx#225556 for details

查看更多
Rolldiameter
3楼-- · 2019-01-30 01:20

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.

查看更多
神经病院院长
4楼-- · 2019-01-30 01:22

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

Try it. It's sublime :)

查看更多
看我几分像从前
5楼-- · 2019-01-30 01:28

Here is a simple CodeRush Template for generating guard clauses.

Type inx space within a method, whilst you have a variable reference on the clipboard and you'll get...

If [VariableName] Is nothing Then
    return 
End If 

or

if ([VariableName] == null)
{
    return;
}

... depending on the language you're currently operating in.

This Template is often referred to within DevExpress Webinars as If Not Null or If Null Exit

查看更多
贪生不怕死
6楼-- · 2019-01-30 01:31

Search for Member

QuickNav (Ctrl+Shift+Q) can be a bit excessive at times....

If you know you're looking for a Method, bind Ctrl+M to QuickNav using additionial params of "AllTypes, AllMembers, AllVisibilities, CurrentFile" (without quotes)

This will allow you to search for only Members in the current file.

These params can be tweaked to your liking. See http://community.devexpress.com/forums/p/66380/225556.aspx#225556 for details

查看更多
登录 后发表回答