Purpose |
Key |
Description |
Edit.CollapseTo-Definitions |
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.Toggle-OutliningExpansion |
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.Uncomment- Selection |
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 | ext 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. |