Archive

Posts Tagged ‘Embeddings’

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…

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…

Wrapping code blocks with the CodeRush Code Embeddings feature

September 12th, 2011 Comments off

CodeRush Code Embeddings allow you to wrap the selected code block or any text into another predefined code block, such as: try/catch, try/finally, using and lock statements, while and other loops, region directives, etc. Code Embeddings are available via the predefined keyboard shortcuts, via the Embed Selection code editor context menu item, or using the Embed Selection code provider.

Read more…