Archive

Archive for the ‘Selection’ Category

The support of multi-selection for Visual Studio by CodeRush

July 27th, 2012 Comments off

The Visual Studio IDE has a great box selection feature that allows you to select a rectangular region of text within the code editor by holding down the Alt key while selecting the text region with the mouse:

Visual Studio box selection

Read more…

DXCore Components – Selection Inversion Extension

October 24th, 2011 Comments off

The Selection Inversion Extension DXCore component adds a custom intelligent selection inversion provider used by the CodeRush Selection Inversion feature.

You can drop the SeletionInversionExtension control onto your plug-in design surface from the “DXCore: Extensions & Providers” category of the Visual Studio Toolbox:

Read more…

CodeRush Invert Selection code provider

October 24th, 2011 Comments off

The Invert Selection code provider is used to apply the Selection Inversion feature of CodeRush. Once you select a block of text and there is a match with one of the predefined inversion items, the provider becomes available:

Read more…

Customizing Selection Inversion and its predefined templates

October 24th, 2011 Comments off

The Inversion options page allows you to add, modify or remove inversion regular expressions that participate in the Selection Inversion feature of CodeRush. Here is what it looks like:

Read more…

Inverting a code block into its opposite using CodeRush Selection Inversion

October 24th, 2011 Comments off

The Selection Inversion feature of CodeRush Pro allows you to invert the selected code block to the essential opposite. For example, it can invert assignments so its expression assigns the left side; for loops, so they are iterated in a different order; type cast expression, so an ‘as’ operator expression is converted into an explicit typecast, etc.

Read more…

Creating custom CodeRush Code Embeddings

September 12th, 2011 Comments off

CodeRush Code Embeddings are completely customizable. They are modified on the Embeddings options page in the Options Dialog, where you can create your own. Let’s add a new code embedding to surround the selected code with the logging capabilities.

Read more…

CodeRush Code Embeddings Options

September 12th, 2011 Comments off

The Embeddings options page allows you to customize or remove the predefined CodeRush Code Embeddings and create your own for any registered language. The options page is located at the Editor | Selections | Embeddings path inside the CodeRush Options Dialog. Here is what is looks like:

Read more…

Code Providers – Embed Selection

September 12th, 2011 2 comments

The Embed Selection code provider allows you to wrap the selection into the predefined code blocks from the Code Embedding feature of CodeRush. The code provider is available when a whole line or multiple lines are selected and at least one embedding is predefined for the current language.

Read more…