Posts Tagged ‘Actions’

Unbound Actions – Clear Project Cache

February 16th, 2011 Comments off

The Clear Project Cache action invalidates the IDE Tools cache for the current solution. The solution cache represents an on-disk cache, containing important information for all projects for every solution you had opened, such as metadata, project symbols, code issues stuff, etc. This cache is built for every solution while it is opened and parsed, and maintained by DXCore automatically.

Read more…

Clipboard Tools – Smart Cut and Smart Copy

February 2nd, 2011 Comments off

These CodeRush clipboard features allow you to take an identifier or a block of code, and put it into clipboard without selecting it in advance. Just place the editor text caret at the identifier or at the start or end of a code block and press the copy key (Ctrl+C or Ctrl+Insert) or the cut key (Ctrl+X or Shift+Delete). This makes it easy to use cut and copy operations to move, duplicate or delete contiguous blocks of code, like methods, properties, conditional statements, loops, try/catch/finally blocks, comments, etc without selecting it first.

Read more…

Unbound Actions – Toggle Region

January 27th, 2011 Comments off

The ToggleRegion action changes the collapsed state of the currently active region. This functionality is very similar to the existing “Toggle Regions Outlining” shortcut, provided by CodeRush. The only difference is that you can collapse the active region using the ToggleRegion action when the editor caret is located anywhere inside of a region, while the “Toggle Region Outlining” shortcut is available only on the line with a region directive. The action is not bound to any key, so you might want to do it via the Shortcuts options page in the Options Dialog.

Products: CodeRush Pro
Versions: 11.1 and up
VS IDEs: any
Updated: Aug/30/2011
ID: C061

Coding Helpers – Toggle Regions Outlining

January 27th, 2011 Comments off

When the editor caret is on the line with a region directive, you can press the Space key to collapse or expand the outline of a region. There are built-in shortcuts for toggling outline expansion, but they are probably more tricky to press and remember, e.g. “Ctrl+M, M” (hold the Control key and press the M key twice in the Visual C# keyboard mapping scheme).

CodeRush Toggle Region Outlining

Read more…

Coding Helpers – Auto Create Region

January 26th, 2011 Comments off

If you prefer your code to be wrapped into region directives (#region … #endregion in CSharp, or #Region … #End Region in Visual Basic), the Auto Create Region feature from CodeRush will help. To create a named region around a method, property or event, press “Ctrl+3” key anywhere inside of an active member. This will execute the “RegionAutoCreateaction, which wraps the active member into region directives. The region name will be the same as member’s name and will wrap all attached elements, such as XML doc comments or attributes as well.

Read more…

Unbound Actions – Google Active Word

January 11th, 2011 Comments off

The “Google Active Word” action is one of the simplest, open source sample features, useful for beginners learning CSharp .NET language in Visual Studio. It performs a search in Google for the word at the editor caret, using the following link:

where “ActiveWord” is a word at the editor caret.

Read more…

Unbound Actions – Reopen last closed document

December 20th, 2010 Comments off

Have you ever accidentally closed a document in Visual Studio? To reopen the file, you have to browse it in the Solution Explorer or any other file explorers. Like most browsers, which have the ability to reopen accidentally closed tabs, CodeRush has the same feature. The action providing this feature is not bound to any key. So, if you’d like to use it, you have to create a new shortcut (e.g. Ctrl+Shift+T) and bind it to the ReopenLastClosedDocument action. This feature restores up to 10 of the most recently closed documents.

Read more…

How to use Action DXCore control

December 14th, 2010 Comments off

There are only four important things to make the Action component available and working:

  1. Create a new DXCore plug-in if you haven’t done it yet
  2. Drop the Action control on the plug-in designer surface
  3. Fill the ActionName property
  4. Handle the Execute event

That’s it. Using the ActionName you are able to assign a shortcut key, and once it’s pressed, the Execute event will do its job – perform the code you added into the event handler.

Read more…