You are on page 1of 1

Microsoft Visual C# Default Keybindings

® ®

Editing IntelliSense Window Debugging


Edit.CollapseTo- CTRL + M, O Collapses existing regions to Edit.CompleteWord CTRL + SPACE or Completes the current word in View.ClassView CTRL + W, C Displays the Class View window. Debug.Autos CTRL + D, A Displays the Autos window, which
Definitions provide a high-level view of the CTRL + K, W the completion list. displays variables used in the current
types and members in the View.CodeDefinition- CTRL + W, D Displays the Code Definition line of code and the preceding line
source file. Edit.ListMembers CTRL + J or Invokes the IntelliSense® Window window. of code.
CTRL + K, L completion list.
Edit.ToggleAllOutlining CTRL + M, L Toggles all previously collapsed View.Command- CTRL + W, A Displays the Command window, Debug.CallStack CTRL + D, C Displays the Call Stack window,
outlining regions between Edit.QuickInfo CTRL + K, I Displays the complete declaration Window where commands can be invoked which displays a list of all active
collapsed and expanded states. for the specified identifier in your to manipulate the integrated methods or stack frames for the
code in a Quick Info tool tip. development environment (IDE). current thread of execution.
Edit.Toggle- CTRL + M, M Toggles the currently selected
OutliningExpansion collapsed region between the Edit.ParameterInfo CTRL + SHIFT + SPACE Displays the name, number, and View.ErrorList CTRL + W, E Displays the Error List window. Debug.Immediate CTRL + D, I Displays the Immediate window,
collapsed and expanded state. or CTRL K, P type of parameters required for where expressions can be evaluated.
the specified method. View.ObjectBrowser CTRL + W, J Displays the Object Browser.
Edit.StopOutlining CTRL + M, P Removes all outlining information Debug.Locals CTRL + D, L Displays the Locals window, which
from the whole document. View.Output CTRL + W, O Displays the Output window, where displays the local variables and
Navigation status messages can be viewed at their values for each method in the
Edit.CommentSelection CTRL + K, C or Inserts // at the beginning of the run time. current stack frame.
CTRL + E, C current line or every line of the Edit.FindAllReferences SHIFT + F12 or Displays a list of all references for
current selection. CTRL + K, R the symbol selected. View.PropertiesWindow CTRL + W, P Displays the Properties window, Debug.QuickWatch CTRL + D, Q Displays the QuickWatch dialog
which lists the design-time box that has the current value of the
Edit.Uncomment- CTRL + K, U or Removes the // at the beginning of Edit.GoToBrace CTRL + ] Moves the cursor location to the properties and events for the selected expression.
Selection CTRL + E, U the current line or every line of the matching brace in the source file. currently selected item.
current selection. Debug.Start F5 Launches the application under the
Edit.GoToDefinition F12 Navigates to the declaration for the View.SolutionExplorer CTRL + W, S Displays Solution Explorer, which debugger based off of the settings
Edit.FormatDocument CTRL + K, D or Formats the current document selected symbol in code. lists the projects and files in the from the startup project. When in
CTRL + E, D according to the indentation and current solution. Break mode, invoking this command
code formatting settings specified Edit.GoToNextLocation F8 Moves the cursor to the next item, will run the application until the next
on the Formatting pane under such as a task in the Task List View.TaskList CTRL + W, T Displays the Task List window, which breakpoint.
Tools | Options | Text Editor | C#. window or a search match in the displays custom tasks, comments,
Find Results window. Subsequent shortcuts, warnings, and error Debug. CTRL + F5 Launches the application without
Edit.FormatSelection CTRL + K, F or Formats the current selection invocations will move to the next messages. StartWithoutDebugging invoking the debugger.
CTRL + E, F according to the indentation and item in the list.
code formatting settings specified View.Toolbox CTRL + W, X Displays the Toolbox, which contains Debug.StepInto F11 Executes code one statement at
on the Formatting pane under Edit.IncrementalSearch CTRL + I Activates incremental search. controls that can be included or a time, following execution into
Tools | Options | Text Editor | C#. If incremental search is on, but used with your code. method calls.
no input is passed, the previous
Edit.InsertSnippet CTRL + K, X Displays the Code Snippet Picker. search query is used. If search View.ServerExplorer CTRL + W, L Displays Server Explorer, which lets Debug.StepOut SHIFT + F11 Executes the remaining lines of
The selected code snippet will be input has been found, next you view and manipulate database a method in which the current
inserted at the cursor position. invocation searches for the next servers, event logs, message execution point is located.
occurrence of the input text. queues, Web services, and other
Edit.SurroundWith CTRL + K, S Displays the Code Snippet Picker. operating system services. Debug.StepOver F10 Executes the next line of code, but
The selected code snippet will be View.ClassViewGo- CTRL + K, CTRL + V Brings focus to the Class View does not follow execution through
wrapped around the selected text. ToSearch, Combo search box. Window.Close- SHIFT + ESC Closes the current tool window. any method calls.
ToolWindow
Edit. Invoke Snippet TAB Inserts the expanded code snippet View.Forward- CTRL + SHIFT + 7 Moves to the next item called in Debug.Stop- SHIFT + F5 Stops running the current
From Shortcut from the shortcut name. BrowseContext code in the current file. Uses the Go Data.ShowDataSources SHIFT + ALT + D Displays the Data Sources window. Debugging application under the debugger.
To Definition navigation stack.
Edit.CycleClipboardRing CTRL + SHIFT + V Pastes text from the Clipboard ring Window.Close- Debug.Toggle- F9 Sets or removes a breakpoint at the
to the cursor location in the file. View.PopBrowse- CTRL + SHIFT + 8 Moves to the previous item called in Document, Window CTRL + F4 Closes the current tab. Breakpoint current line.
Subsequent use of the shortcut key Context code in the current file. Uses the Go
iterates through the items in the To Definition navigation stack. Debug.Watch CTRL + D, W Displays the Watch window, which
Clipboard ring. Window.Next- CTRL + TAB Displays the IDE Navigator, with the displays the values of selected
View.Navigate- CTRL + MINUS Moves to the previously browsed Document, WindowNav first document window selected. variables or watch expressions.
Edit.Replace CTRL + H Displays the replace options in the Backward SIGN (-) line of code.
Quick tab of the Find and Replace Debug.Enable- CTRL + F9 Toggles the breakpoint between
dialog box. View.Navigate- CTRL + SHIFT + Moves to the next browsed line Refactoring Breakpoint disabled and enabled.
Forward MINUS SIGN (-) of code.
Edit.ReplaceInFiles CTRL + SHIFT + H Displays the replace options on the Refactor.- CTRL + R, E Displays the Encapsulate Field Make Datatip [CTRL] Causes a visible datatip to become
In Files tab of the Find and Edit.FindInFiles CTRL + SHIFT + F Displays the In Files tab of the Find EncapsulateField dialog box, which allows creation Transparent transparent.
Replace dialog box. and Replace dialog box. of a property from an existing field
and updates all references to use
View.ShowSmartTag CTRL + . or Displays the available options on Edit.FindSymbol ALT + F12 Displays the Find Symbol pane of the new property. Build
SHIFT + ALT + F10 the smart tag menu. the Find and Replace dialog box.
Refactor.Extract- CTRL + R, I Displays the Extract Interface Build.BuildSolution F6 or CTRL + Builds all the projects in the
File View.ViewCode F7 Displays the selected item in Code Interface dialog box, which allows creation SHIFT + B solution.
view of the editor. of a new interface with members
File.NewProject CTRL + SHIFT + N Displays the New Project derived from an existing class, Build.BuildSelection SHIFT + F6
dialog box. View.ViewDesigner SHIFT + F7 Switches to Design view for the struct, or interface. Builds the selected project and its
current document. Available only in dependencies.
File.OpenProject CTRL + SHIFT + O Displays the Open Project dialog Source view. Refactor. CTRL + R, M Displays the Extract Method
box, where existing projects can be ExtractMethod dialog box, which allows creation
added to the solution. View.ViewMarkup SHIFT + F7 Switches to Source view for the of a new method from the selected
current document. Available only in code.
Project.AddClass SHIFT + ALT + C Displays the Add New Item dialog Design view.
box and selects Class template as Refactor.Promote- CTRL + R, P Moves a variable from a local
default. Window.MoveTo- CTRL + F2 Moves the cursor to the drop-down LocalVariableto- usage to a method, indexer,
NavigationBar bar located at the top of the code Parameter or constructor parameter and
Project.AddExisting- SHIFT + ALT + A Displays the Add Existing Item editor when the editor is in Code updates all call sites appropriately.
Item dialog box, where existing files can view or Server Code view.
be added to the current project. Refactor.Remove- CTRL + R, V Displays the Remove Parameters
Edit.Find CTRL + F Displays the Quick tab of the Find Parameters dialog box, which allows removal
Project.AddNewItem CTRL + SHIFT + A Displays the Add New Item dialog and Replace dialog box. of parameters from methods,
box, where a new file can be indexers, or delegates by changing
added to the current project. Edit.GoTo CTRL + G Displays the Go To Line dialog box. the declaration at any locations
where the member is called.
Window.ShowEz- CTRL + ALT + Displays a pop-up listing of all Edit.GoToFindCombo CTRL + / Puts the cursor in the Find/
MDIFileList DOWN ARROW open documents. Command box on the Standard Refactor.Rename CTRL + R, R or F2 Displays the Rename dialog
toolbar. box, which allows renaming all
Edit.OpenFile CTRL + O Displays the Open File dialog box references for an identifier.
where a file can be selected to be
opened. This does not add the file Refactor.Reorder- CTRL + R, O Displays the Reorder Parameters
to the project. Parameters dialog box, which allows changes
to the order of the parameters for
methods, indexers, and delegates.
Notes: These key bindings are only available through the Visual C# Development
Settings. To change to the Visual C# Development settings, go to Tools |
Import and Export Settings and select Reset all Settings then select Visual C#
Development Settings.
To customize the key bindings for these commands, go to Tools | Options |
Environment | Keyboard.

You might also like