Microsoft® Visual C#® Default Key Bindings
Editing Edit.Toggle- CTRL + ALT + Toggles between suggestion mode Edit.GoToDefinition F12 Navigates to the declaration for the CompletionMode SPACEBAR (all commit characters except for selected symbol in code. Edit.CollapseTo- CTRL + M, O Collapses declaration bodies to tab leave entered text as-is, tab Definitions provide a high-level view of the chooses a completion item in the Edit.GoToNext- F8 Moves the caret to the next item, types and members in the source list) and completion mode. Location such as a task in the Task List file. window or a search match in the Edit.
Edit.Replace CTRL + H Displays the replace options in the Edit.NavigateTo CTRL + COMMA (,) Displays the NavigateTo window, Edit.Find CTRL + F Displays the Find Quick tab of the Quick Replace tab of the Find and which allows quick navigation to Find and Replace dialog box. Replace dialog box. files, types, and members. The word at the caret seeds the search. Edit.GoTo CTRL + G Displays the Go to Line dialog box. Edit.ReplaceInFiles CTRL + SHIFT + H Displays the replace options on the Edit.FindAll- SHIFT + F12 or Displays a list of all references for Edit.GoToFind- CTRL + / Moves focus to the Find/Command Replace in Files tab of the Find Combo box on the Standard toolbar. and Replace dialog box. References CTRL + K, R the symbol selected.
View.Show- CTRL + PERIOD (.) Displays the available options on Edit.GoToBrace CTRL + ] Moves the caret location to the SmartTag or SHIFT + ALT + F10 the Smart Tag menu. matching brace in the source file. EditorContext- CTRL + K, T Brings focus to the Call Hierarchy Debugging Refactoring Menus.Code- window using the member at the Window.ViewCall- caret as a top-level node. Debug.Autos CTRL+D, A Displays the Autos window, which CodeRush Xpress is a free plug-in from Developer Hierarchy displays variables used in the current line Express Inc., in partnership with Microsoft. CodeRush of code and the preceding line of code. Xpress supports more than 50 refactoring features. See Edit.NextHigh- CTRL + SHIFT + Moves the caret to the next or www.devexpress.com/Products/Visual_Studio_Add- lightedReference, DOWN ARROW previous highlighted identifier Debug.CallStack CTRL+D, C Displays the Call Stack window, in/CodeRushX/ for more information. Edit.PreviousHigh- and CTRL + SHIFT matching the current one. which displays a list of all active lightedReference + UP ARROW methods or stack frames for the Refactor.- CTRL + R, E Displays the Encapsulate Field current thread of execution. EncapsulateField dialog box, which allows creation of a property from an existing field Window Debug.Immediate CTRL+D, I Displays the Immediate window, and updates all references to use where expressions can be evaluated. the new property. View.ClassView CTRL + W, C Displays the Class View window. Debug.Locals CTRL+D, L Displays the Locals window, which Refactor.Extract- CTRL + R, I Displays the Extract Interface View.Code- CTRL + W, D Displays the Code Definition displays the local variables and their Interface dialog box, which allows creation DefinitionWindow window. values for each method in the of a new interface with members current stack frame. derived from an existing class, View.ErrorList CTRL + W, E Displays the Error List window. struct, or interface. Debug.QuickWatch CTRL+D, Q Displays the QuickWatch dialog View.ObjectBrowser CTRL + W, J Displays the Object Browser. box that has the current value of Refactor.Extract- CTRL + R, M Displays the Extract Method dialog the selected expression. View.Output CTRL + W, O Displays the Output window, where Method box, which allows creation of a new method from the selected code. status messages can be viewed at Debug.Start F5 Launches the application under the run time. debugger based on the settings from Refactor.Remove- CTRL + R, V Displays the Remove Parameters the startup project. When in Break View.Properties- Parameters dialog box, which allows removal of CTRL + W, P Displays the Properties window, mode, invoking this command will run Window parameters from methods, indexers, which lists the design-time the application until the next breakpoint. properties and events for the or delegates by changing the declaration at any locations where currently selected item. Debug.Start- CTRL+F5 Launches the application without the member is called. WithoutDebugging invoking the debugger. View.Solution- CTRL + W, S Displays Solution Explorer, which Refactor.Rename CTRL + R, R or F2 Displays the Rename dialog Explorer lists the projects and files in the Debug.StepInto F11 Executes code one statement at box, which allows renaming all current solution. a time, following execution into references for an identifier. method calls. View.TaskList CTRL + W, T Displays the Task List window, Refactor.Reorder- CTRL + R, O Displays the Reorder Parameters which displays custom tasks, Debug.Step- SHIFT+ALT+F11 Prompts to select which sub Parameters dialog box, which allows changes comments, shortcuts, warnings, and IntoSpecific expression to step into, regardless to the order of the parameters for error messages. of the tools options setting for methods, indexers, and delegates. skipping properties and operators. View.Toolbox CTRL + W, X Displays the Toolbox, which Refactor! CTRL + Invokes available Developer Express contains controls that can be Debug.StepOut SHIFT+F11 Executes the remaining lines of BACKQUOTE (`) Inc. refactorings when it is installed. included or used with your code. a method in which the current execution point is located. View.ServerExplorer CTRL + W, L Displays Server Explorer, which lets you view and manipulate database Debug.StepOver F10 Executes the next line of code, but Build servers, event logs, message does not follow execution through queues, Web services, and other any method calls. Build.BuildSolution F6 or Builds all the projects in the operating system services. CTRL+SHIFT+B solution. Debug.Stop- SHIFT+F5 Stops running the current Window.CloseTool- SHIFT + ESC Closes the current tool window. Debugging application under the debugger. Build.BuildSelection SHIFT+F6 Builds the selected project and its Window dependencies. Debug.Toggle- F9 Sets or removes a breakpoint at Data.ShowData- SHIFT + ALT + D Displays the Data Sources window. Breakpoint the current line. Note: You can choose to use these key bindings from the Visual Sources Debug.Watch CTRL+D, W Displays the Watch window, which C# Development Settings. To change these settings, go to Tools Window.Close- CTRL + F4 Closes the current tab. displays the values of selected | Import and Export Settings... and select Reset All Settings. DocumentWindow variables or watch expressions. Then select Visual C# Development Settings. You could also Window.NextDocu- CTRL + TAB Displays the IDE Navigator, with Debug.Enable- CTRL+F9 Toggles the breakpoint between import only the key bindings by selecting Import Selected mentWindowNav the first document window selected. Breakpoint disabled and enabled. Environment Settings instead of Reset All Settings. To customize individual key bindings, go to Tools | Options | View.CallHierarchy CTRL + W, K Displays the Call Hierarchy Make Datatip [CTRL] Causes a visible datatip to become window, which lists callers and Transparent transparent. Environment | Keyboard. callees for a given member. Test.RunTestsIn- CTRL+R, T Runs the unit test containing View.ZoomIn, CTRL + SHIFT + Increases (>) or decreases (<) the CurrentContext the caret. View.ZoomOut PERIOD (.) and size of contents in the editor. CTRL + SHIFT + Test.RunAllTests- CTRL+R, A Runs all of the unit tests in © 2009 Microsoft Corporation. All rights reserved. Microsoft, IntelliSense, Visual C#, COMMA (,) InSolution the solution. Visual Studio, and the Visual Studio logos are trademarks of the Microsoft group of companies. All other trademarks are the property of their respective owners.