Sie sind auf Seite 1von 2

Microsoft Visual C++ Default Key Bindings

Editing
Edit.Find Edit.Replace Edit.FindInFiles CTRL + F CTRL + H CTRL + SHIFT + F Displays the Quick Find tab of the Find and Replace dialog box. Displays the Quick Replace tab of the Find and Replace dialog box. Allows searching of all the les in a project or solution for a specic word or expression. Allows search and replace functionality over all the les in a project or solution. Performs a search as you type. Sets the focus in the Find box on the toolbar. Lowercases the selected text. Uppercases the selected text.

File
File.NewProject File.OpenFile File.OpenProject Project.AddNewItem Project.AddExistingItem File.OpenContainingFolder CTRL + SHIFT + N CTRL + O CTRL + SHIFT + O CTRL + SHIFT + A SHIFT + ALT + A <unassigned> Creates a new project. Opens an existing le. Opens an existing project. Adds a new item to the project. Adds an existing item to the project. Opens the folder containing the le in the editor.

Navigation
Edit.NavigateTo CTRL + COMMA (,) Displays the NavigateTo window, which allows quick navigation to les, types, and members. The dialog is populated with the symbol at the cursor location. CTRL + ] ALT + F12 CTRL + F8 F8 or F4 SHIFT + F8 or SHIFT + F4 <unassigned> F12 CTRL + \, D or CTRL + SHIFT + V CTRL + F12 <unassigned> Moves the cursor location to the matching brace in the source le. Displays the Find Symbol pane of the Find and Replace dialog box. Sets the focus to the navigation bar. Navigates to the next nd result. Navigates back to the previous result. Synchronizes the class view with the editor. Goes to denition. Brings up a window that is constantly updating with the denition of the selected symbols. Goes to declaration. Searches all references to the current symbol.

Edit.GoToBrace Edit.FindSymbol Window.MoveToNavigationBar Edit.GoToNextLocation

Edit.ReplaceInFiles

CTRL + SHIFT + H

Edit.IncrementalSearch Edit.GoToFindCombo Edit.MakeLowercase Edit.MakeUppercase Edit.ViewWhiteSpace Edit.CommentSelection Edit.UncommentSelection Edit.HideSelection Edit.CycleClipboardRing Edit.CopyParameterTip Edit.PasteParameterTip File.CopyFullPath Edit.HideSelection Edit.ToggleAllOutlining Edit.ToggleOutliningExpansion Edit.FormatSelection

CTRL + I CTRL + D CTRL + U CTRL + SHIFT + U

Build
Build.BuildSolution Build.RebuildSolution Build.Cancel F7 or CTRL + SHIFT + B CTRL + ALT + F7 CTRL + BREAK Builds the solution. Rebuilds the solution. Cancels the build process.

Edit.GoToPrevLocation View.SynchronizeClassView Edit.GoToDenition View.CodeDenitionWindow Edit.GoToDeclaration Edit.FindAllReferences View.NavigateBackward View.NavigateForward Tools.GoToCommandLine

CTRL + R, CTRL + W Uses glyphs to represent the white or CTRL + SHIFT + 8 spaces in the editor. CTRL + K, CTRL + C Comments selected text. CTRL + K, CTRL + U Uncomments selected text.

IntelliSense
Edit.CompleteWord CTRL + SPACEBAR Completes the current word or shows the IntelliSense completion or ALT + RIGHT ARROW list. CTRL + SHIFT + SPACEBAR CTRL + J or CTRL + ALT + T Displays the name, return value, and parameters of the function call. Shows only members in the IntelliSense completion list.

Edit.ParameterInfo CTRL + M, CTRL + H Creates an outline for the selected text and collapses it. CTRL + SHIFT + INS Cycles through the Clipboard ring. Edit.QuickInfo CTRL + SHIFT + ALT + C CTRL + SHIFT + ALT + P <unassigned> CTRL + M, CTRL + H CTRL + M, L Copies to clipboard the list of parameters. Pastes in the editor the list of parameters. Copies to clipboard the full path of the selected le. Collapses current selection to an outlining region. Toggles all previously collapsed outlining regions between collapsed and expanded states. Toggles the currently selected collapsed region between the collapsed and expanded state. Formats the current selection according to the indentation and code formatting settings specied on the Formatting pane under Tools | Options | Text Editor | C/C++. Creates a column selection instead of a stream selection. Edit.ListMembers

CTRL + K, CTRL + I Displays the complete declaration of the identier under cursor.

CTRL + HYPHEN (-) Moves to the previously browsed line of code. CTRL + SHIFT + HYPHEN (-) CTRL + / Moves to the next browsed line of code. Allows running of commands from the Find text box. (For a list of
available commands see Command Aliases below.)

Bookmarks
Edit.ToggleBookmark Edit.NextBookmark Edit.PreviousBookmark Edit.NextBookmarkInFolder Edit.PreviousBookmarkInFolder View.BookmarkWindow Edit.ToggleTaskListShortcut CTRL + K, CTRL + K Toggles a bookmark on the or CTRL + F2 current line. CTRL + K, CTRL + N or F2 Moves to the next bookmark.

Window.ShowEzMDIFileList

CTRL + ALT + DOWN ARROW

Shows a list of les currently opened in the editor.

CTRL + K, CTRL + P Moves to the previous bookmark. or SHIFT + F2 CTRL + SHIFT + K, CTRL + SHIFT + N CTRL + SHIFT + K, CTRL + SHIFT + P Moves to the next bookmark in the current folder. Moves to the previous bookmark in the current folder.

Windows
View.SolutionExplorer View.PropertiesWindow View.Output View.ErrorList View.ZoomIn, View.ZoomOut CTRL + ALT + L ALT + ENTER Displays the Solution Explorer window. Displays the Properties window.

CTRL + M, M

CTRL + K, F or CTRL + E, F

CTRL + K, CTRL + W Shows the Bookmarks window. CTRL + K, CTRL + H Toggles Task List shortcut.

CTRL + ALT + O or Displays the Output window. ALT + 2 CTRL + \, E CTRL + SHIFT + PERIOD (.) and CTRL + SHIFT + COMMA (,) Displays the Error List window. Increases or decreases the view size of the contents in the editor.

Edit.<Direction> ExtendColumn

SHIFT + ALT + <ARROW KEY>

VS KB Brochure C++_A4.indd 2

7/6/10 9:41 AM

View.CallHierarchy

CTRL + ALT + K

Displays the Call Hierarchy window, which lists the callers and callees to a method. Closes the current tool window. Displays the Project Properties dialog box. Displays the Command window. (For a list of available commands see Command Aliases section.)

Debug.CallStack Debug.Autos Debug.Breakpoints Debug.Disassembly Debug.Modules Debug.Processes

CTRL + ALT + C or ALT + 7 CTRL + ALT + V, A CTRL + ALT + B or ALT + F9 ALT + 8 CTRL + ALT + U CTRL + ALT + Z or CTRL + SHIFT + ALT + P

Displays the Call Stack window. Displays the Autos window. Displays the list of breakpoints. Shows the disassembly code. Displays the list of modules. Displays the list of debugged processes.

View.WebBrowser

nav <url> [/new] [/ext] nf [<lename>] of <le> [/e:<editor>]

Displays the internal Web browser. /new will create a new tab. /ext will open the external browser. Creates a new le with the specied name. Opens an existing le and allows specifying of the editor type.

Window.CloseToolWindow Project.Properties View.ClassView View.CommandWindow

SHIFT + ESC ALT + F7

File.NewFile File.OpenFile File.OpenProject Debug.StepOver

CTRL + SHIFT + C Displays the Class View window. CTRL + ALT + A

op [<projname>] Opens an existing project. p Executes next statement without following execution into method calls. Executes the remaining statements of the currently debugged function. Stops debugging. Prints the register values. Runs the application until it reaches the statement under the cursor. Launches an application with the specied arguments. Executes next statement and follows execution into method calls. Displays the Threads window. Lists the disassembly for the next statements. Displays the Watch window. Lists the debugged processes to the Command window. Lists the threads in the debugged process to the Command window. Prints the call stack for all threads in the debugged process.

Debugging
Debug.Start Debug.StartWithoutDebugging Debug.StopDebugging Tools.AttachToProcess Debug.DetachAll Debug.BreakAll Debug.BreakAtFunction Debug.ToggleBreakpoint Debug.StepInto Debug.StepOver Debug.StepOut Debug.RunToCursor Debug.QuickWatch Debug.SetNextStatement Debug.ShowNextStatement Debug.Exceptions Debug.ToggleDisassembly F5 CTRL + F5 SHIFT + F5 CTRL + ALT + P <unassigned> CTRL + ALT + BREAK CTRL + B F9 F11 F10 SHIFT + F11 CTRL + F10 CTRL + ALT + Q or SHIFT + F9 CTRL + SHIFT + F10 ALT + NUM * CTRL + ALT + E CTRL + F11 Launches the application under the debugger. Launches the application without invoking the debugger. Stops debugging. Displays the Attach to Process dialog box. Detaches from all processes. Breaks all executing threads. Creates a new function breakpoint. Toggles breakpoint at current line. Executes next statement and follows execution into method calls. Executes next statement. Executes the remaining statements of the currently debugged function. Runs the application until it reaches the statement under the cursor. Displays QuickWatch window. Sets the current statement to be the next executed statement. Shows the next statement. Shows the Exceptions dialog box. Toggles between disassembly and User Code view.

Debug.Memory1 Debug.Watch

CTRL + ALT + M, 1 Displays the Memory window. CTRL + ALT + W, 1 Displays the list of watches. or ALT + 3

Debug.StepOut Debug.StopDebugging Debug.ListRegisters Debug.RunToCursor Tools.Shell Debug.StepInto Debug.Threads Debug.ListDisassembly Debug.Watch

pr q r rtc shell [dir:<dir>] <path> [<args>] t threads u watch | ~ ~*k

Command Aliases
These commands can be run in the Command window (CTRL+SHIFT+A) as well as in the Command line (CTRL+/).

Debug.Print Debug.QuickWatch Debug.Autos Debug.Breakpoints Debug.ToggleBreakpoint Debug.CallStack Debug.ListMemory Debug.ListMemory /Format:OneByte Debug.ListMemory /Format:FourBytes Debug.Disassembly Debug.Evaluate Statement Debug.Start Tools.ImmediateMode Debug.ListCallStack Debug.Locals Tools.LogCommand WindowOutput

? <expression> ?? <expression> autos bl bp callstack d [/Count:<n>] <address> db <address> dd <address> disasm

Evaluates expression and prints the result to the Command window. Evaluates expression in the QuickWatch window. Displays the Autos window. Displays the Breakpoints window. Toggles breakpoint on current line. Displays the Call Stack window. Lists the content of the memory at the specied address (list only n elements). Lists the content of the memory as an array of bytes. Lists the content of the memory as an array of longs. Switches to disassembly mode.

Debug.ListProcesses Debug.ListThreads Debug.ListCallStack /AllThreads

eval <statement> Evaluates and displays the given statement. g [<address>] immed k [Thread:<n>] [<frame>] locals log [<lename>] [/off] n [hex|dec] Starts debugger. Optionally suspends execution at the provided address. Displays the Immediate window. Prints the call stack or sets threads current frame to the specied frame. Displays the Locals window. Starts logging all input and output from the Command window. /off stops logging. Sets or returns the numeric base used to display integers.

Notes: These key bindings are only available through the Visual C++ Development Settings. To change these settings, go to Tools | Import and Export Settings and select Reset All Settings then select Visual C++ Development Settings. You could also import only the key bindings by selecting Import Selected Environment Settings instead of Reset All Settings. To customize the key bindings for these commands, go to Tools | Options | Environment | Keyboard. More information on the available command aliases and their parameters is available on MSDN: http://msdn2.microsoft.com/ en-us/library/c785s0kz.aspx

Debugger Windows
Debug.Threads Debug.Immediate Debug.Locals CTRL + ALT + H CTRL + ALT + I CTRL + ALT + V, L or ALT + 4 Displays the Thread List window. Displays the Immediate window. Displays the Locals window.

Debug.SetRadix

2009 Microsoft Corporation. All rights reserved. Microsoft, IntelliSense, MSDN, Visual C++, Visual Studio, and the Visual Studio logos are trademarks of the Microsoft group of companies.

VS KB Brochure C++_A4.indd 1

7/6/10 9:42 AM

Das könnte Ihnen auch gefallen