Share via


Code Snippet Shortcut Keys, Visual C# Scheme

The following shortcut key combinations can be used to work with code snippets.

Note

When you select Visual C# Development Settings in the Import and Export Settings Wizard, the Visual C# 2005 keyboard mapping scheme is applied. Visual C# 2005 is the current keyboard mapping scheme. This is the keyboard mapping scheme that is applied to the integrated development environment (IDE) at initial startup. For more information, see How to: Change Select Settings.

To switch to the Visual C# keyboard mapping scheme

  1. On the Tools menu, click Options.

  2. Expand Environment, and then click Keyboard.

  3. Select Visual C# 2005 from the Apply the following application keyboard mapping scheme drop-down list.

Command Name

Shortcut Keys

Description

Edit.InsertSnippet

CTRL + K, X

Displays the Code Snippet Picker. The selected code snippet will be inserted at the cursor position.

Edit.SurroundWith

CTRL + K, S

Displays the Code Snippet Picker. The selected code snippet will be wrapped around the selected text.

Tools.CodeSnippetsManager

CTRL + K, CTRL + B

Displays the Code Snippets Manager, which lets you search for and insert code snippets into files.

See Also

Concepts

Visual C# Default Shortcut Keys