Default Keybindings: Editing Commands
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Visual C# Keyboard Shortcuts |
| edit |
[edit]
Editing commands default keybindings
These are the Visual C# IDE default keybindings for the Editing commands defined in the Visual C# 2005 profile.
The Visual Studio Editing commands are used to edit C# source code files.
| Command | Key(s) | Description |
| Edit.CollapseToDefinitions | CTRL + M, O | Collapses existing regions to provide a high-level view of the types and members in the source file. |
| Edit.ToggleAllOutlining | CTRL + M, L | Toggles all previously collapsed outlining regions between collapsed and expanded states. |
| Edit.ToggleOutliningExpansion | CTRL + M, M | Toggles the currently selected collapsed region between the collapsed and expanded state. |
| Edit.StopOutlining | CTRL + M, P | Removes all outlining information from the whole document. |
| Edit.CommentSelection | CTRL + K, C or
CTRL + E, C | Inserts // at the beginning of the current line or every line of the current selection.
|
| Edit.UncommentSelection | CTRL + K, U or
CTRL + E, U | Removes the // at the beginning of the current line or every line of the
current selection. |
| Edit.FormatDocument | CTRL + K, D or
CTRL + E, D | Formats the current document according to the indentation and code formatting settings specified on the Formatting pane under Tools / Options / Text Editor / C#. |
| Edit.FormatSelection | CTRL + K, F or
CTRL + E, F | Formats the current selection according to the indentation and code formatting settings specified on the Formatting pane under Tools / Options / Text Editor / C#. |
| 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. |
| Edit. Invoke Snippet
From Shortcut | TAB | Inserts the expanded code snippet from the shortcut name. |
| Edit.CycleClipboardRing | CTRL + SHIFT + V | Pastes text from the Clipboard ring to the cursor location in the file. Subsequent use of the shortcut key iterates through the items in the Clipboard ring. |
| Edit.Replace | CTRL + H | Displays the replace options in the Quick tab of the Find and Replace dialog box. |
| Edit.ReplaceInFiles | CTRL + SHIFT + H | Displays the replace options on the In Files tab of the Find and Replace dialog box. |
| View.ShowSmartTag | CTRL + . or
SHIFT + ALT + F10 | Displays the available options on the smart tag menu. |
[edit]
See also
- Visual C# - learn to make the most of C# with Visual Studio.
- Visual Studio 2005 Software Review
- Visual Studio Entry Points