Intelligent Paste

Intelligent paste modifies the code inserted from the clipboard into the editor.

To execute intelligent paste, press CTRL+V or SHIFT+INSERT.

IntelligentPaste

The following intelligent pastes are available:

Clipboard Insertion Context
A typecast. An "is" test. Within parentheses inside a method.
A relational expression. An assignment. Inside a method.
An HTML color string. A new Color class instance. On an empty line; within an expression.
An HTML color string with alpha value equal to FF. A new Color class instance. Within an expression.
An HTML alpha-blended color string. A new Color class instance. Within an expression.
A field declaration. A class instance creation statement. On an empty line inside a method.
A prefixed field declaration. A class instance creation statement. Inside a method.
A class instance creation statement. A field declaration. Inside a class.
An event declaration. An event trigger. Inside a class.
An assignment statement. An expression. Inside parentheses or to the right of an assignment statement.
Identifier followed by ".". Invokes Intellisense. Inside a method.
An if statement. The expression from the if statement parentheses. Inside parentheses.
A method declaration from an interface. A new method stub. Inside a class.
A field declaration. A property with a backing store. Inside a class.
A property declaration from an interface. A new property with a backing store. Inside a class.
A read-only property declaration from an interface. A new read-only property with a backing store. Inside a class.
A write-only property declaration from an interface. A new write-only property with a backing store. Inside a class.
A prefixed field declaration. A new property with a backing store. Inside a class.
A prefixed read-only field declaration. A new read-only property with a backing store. Inside a class.
An "is" test. A typecast. Within an expression inside a method.
An "is" test. A new local variable initialization to the identifier typecast. On an empty line inside a method.
A method call. A method stub. On an empty line inside a class.

You can customize existing intelligent pastes, and create new intelligent pastes on the Intelligent Paste options page.

Note

This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.