Home > Code Generation, Coding Helpers, Selection > Code Providers – Embed Selection

Code Providers – Embed Selection

September 12th, 2011

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.

To apply the code provider, select the text or a code block in the code editor, and choose one of the available embeddings from the Embed Selection menu:

CodeRush Embed Selection code provider preview (while loop)

—–
Products: CodeRush Pro
Versions: 11.1 and up
VS IDEs: any
Updated: Sep/13/2011
ID: C130

Similar Posts:

  1. Vlad
    February 14th, 2014 at 00:13 | #1

    Doesn’t work with this example:

    If I have private bool IsValid() {
    return _array.Any();
    }

    And I want to decorate the return _array.Any(); because lets say that your logic changed !

  2. February 14th, 2014 at 02:33 | #2

    Vlad, what exactly does not work? Logic may be changed indeed.