Você está na página 1de 2

Debugging Refactoring

Debug.Autos CTRL+D, A Displays the Autos window, which CodeRush Xpress is a free plug-in from Developer Express Inc., in
displays variables used in the current line partnership with Microsoft. CodeRush Xpress supports more than
of code and the preceding line of code. 50 refactoring features. See www.devexpress.com/Products
/Visual_Studio_Add-in/CodeRushX/ for more information.
Debug.CallStack CTRL+D, C Displays the Call Stack window, which
displays a list of all active methods or Refactor.- CTRL + R, E Displays the Encapsulate Field dialog
stack frames for the current thread of EncapsulateField box, which allows creation of a
execution. property from an existing field and
updates all references to use the new
Debug.Immediate CTRL+D, I Displays the Immediate window, property.
where expressions can be evaluated.
Refactor.Extract- CTRL + R, I Displays the Extract Interface dialog
Debug.Locals CTRL+D, L Displays the Locals window, which Interface box, which allows creation of a new
displays the local variables and their interface with members derived from
values for each method in the current an existing class, struct, or interface.
stack frame.
Refactor.Extract- CTRL + R, M Displays the Extract Method dialog
Debug.QuickWatch CTRL+D, Q Displays the QuickWatch dialog box Method box, which allows creation of a new
that has the current value of the method from the selected code.
selected expression.
Refactor.Remove- CTRL + R, V Displays the Remove Parameters
Debug.Start F5 Launches the application under the Parameters dialog box, which allows removal of
debugger based on the settings from parameters from methods, indexers,
the startup project. When in Break or delegates by changing the
mode, invoking this command will run declaration at any locations where
the application until the next breakpoint. the member is called.
Debug.Start- CTRL+F5 Launches the application without Refactor.Rename CTRL + R, R or F2 Displays the Rename dialog box,
WithoutDebugging invoking the debugger. which allows renaming all references
for an identifier.
Debug.StepInto F11 Executes code one statement at a time,
following execution into method calls. Refactor.Reorder- CTRL + R, O Displays the Reorder Parameters
Parameters dialog box, which allows changes to
Debug.Step- SHIFT+ALT+F11 Prompts to select which sub
the order of the parameters for
IntoSpecific expression to step into, regardless of
methods, indexers, and delegates.
the tools options setting for skipping
properties and operators. Refactor! CTRL + Invokes available Developer Express
BACKQUOTE (`) Inc. refactorings when it is installed.
Debug.StepOut SHIFT+F11 Executes the remaining lines of a
method in which the current
execution point is located.
Build
Debug.StepOver F10 Executes the next line of code, but
does not follow execution through Build.BuildSolution F6 or Builds all the projects in the solution.
any method calls. CTRL+SHIFT+B

Debug.Stop- SHIFT+F5 Stops running the current application Build.BuildSelection SHIFT+F6 Builds the selected project and its
Debugging under the debugger. dependencies.

Debug.Toggle- F9 Sets or removes a breakpoint at the


Breakpoint current line. Note:
Debug.Watch CTRL+D, W Displays the Watch window, which You can choose to use these key bindings from the Visual C#
displays the values of selected Development Settings. To change these settings, go to Tools |
variables or watch expressions.
Import and Export Settings... and select Reset All Settings. Then
Debug.Enable- CTRL+F9 Toggles the breakpoint between select Visual C# Development Settings. You could also import only
Breakpoint disabled and enabled.
the key bindings by selecting Import Selected Environment
Make Datatip [CTRL] Causes a visible datatip to become Settings instead of Reset All Settings. To customize individual key
Transparent transparent.
bindings, go to Tools | Options | Environment | Keyboard.
Test.RunTestsIn- CTRL+R, T Runs the unit test containing
CurrentContext the caret.
Microsoft Visual C#
® ®
Test.RunAllTests- CTRL+R, A Runs all of the unit tests in
Default Key Bindings
© 2009 Microsoft Corporation. All rights reserved. Microsoft, IntelliSense, Visual C#, Visual Studio, and
the Visual Studio logos are trademarks of the Microsoft group of companies. All other trademarks are InSolution the solution.
the property of their respective owners.
Editing Edit.Toggle-
CompletionMode
CTRL + ALT +
SPACEBAR
Toggles between suggestion mode
(all commit characters except for tab
Edit.GoToNext-
Location
F8 Moves the caret to the next item,
such as a task in the Task List window
Window
Edit.CollapseTo- CTRL + M, O Collapses declaration bodies to leave entered text as-is, tab chooses or a search match in the Find Results View.ClassView CTRL + W, C Displays the Class View window.
Definitions provide a high-level view of the types a completion item in the list) and window. Subsequent invocations will
and members in the source file. completion mode. move to the next item in the list. View.Code- CTRL + W, D Displays the Code Definition window.
DefinitionWindow
Edit.HideSelection CTRL + M, CTRL + H Collapses current selection to an Edit.<Direction> SHIFT + ALT + Creates a box selection instead of a Edit.Incremental- CTRL + I Activates incremental search. If
outlining region. ExtendColumn <ARROW KEY> stream selection. Search incremental search is on, but no input View.ErrorList CTRL + W, E Displays the Error List window.
is passed, the previous search query View.ObjectBrowser CTRL + W, J Displays the Object Browser.
Edit.ToggleAll- CTRL + M, L Toggles all previously collapsed is used. If search input has been
Outlining outlining regions between collapsed
and expanded states.
File found, next invocation searches for View.Output CTRL + W, O Displays the Output window, where
the next occurrence of the input text. status messages can be viewed at run
File.NewProject CTRL + SHIFT + N Displays the New Project dialog box. time.
Edit.Toggle- CTRL + M, M Toggles the currently selected Edit.FindNext, F3 and SHIFT + F3 Searches again for the last search
OutliningExpansion collapsed region between the File.OpenProject CTRL + SHIFT + O Displays the Open Project dialog Edit.FindPrevious pattern in the direction specified. View.Properties- CTRL + W, P Displays the Properties window,
collapsed and expanded state. box, where existing projects can be Window which lists the design-time properties
added to the solution. Edit.FindNext- CTRL + F3 and Sets the search pattern to the and events for the currently selected
Edit.StopOutlining CTRL + M, P Removes all outlining information Selected, CTRL + SHIFT + F3 selected text, then search in the
from the whole document. item.
Project.AddClass SHIFT + ALT + C Displays the Add New Item dialog Edit.FindPrevious- direction specified.
box and selects Class template as Selected View.Solution- CTRL + W, S Displays Solution Explorer, which lists
Edit.Comment- CTRL + K, C or Inserts // at the beginning of the
default. Explorer the projects and files in the current
Selection CTRL + E, C current line or every line of the View.Forward- CTRL + SHIFT + 7 Moves to the next item called in code
current selection. solution.
Project.Add- SHIFT + ALT + A Displays the Add Existing Item dialog BrowseContext in the current file. Uses the Go To
ExistingItem box, where existing files can be Definition navigation stack. View.TaskList CTRL + W, T Displays the Task List window, which
Edit.Uncomment- CTRL + K, U or Removes the // at the beginning of
added to the current project. displays custom tasks, comments,
Selection CTRL + E, U the current line or every line of the View.PopBrowse- CTRL + SHIFT + 8 Moves to the previous item called in
current selection. shortcuts, warnings, and error
Project.Add- CTRL + SHIFT + A Displays the Add New Item dialog Context code in the current file. Uses the Go messages.
NewItem box, where a new file can be added To Definition navigation stack.
Edit.Format- CTRL + K, D or Formats the current document
to the current project. View.Toolbox CTRL + W, X Displays the Toolbox, which contains
Document CTRL + E, D according to the indentation and View.Navigate- CTRL + HYPHEN (-) Moves to the previously browsed line
code formatting settings specified on controls that can be included or used
Window.ShowEz- CTRL + ALT + Displays a pop-up listing of all open Backward of code.
the Formatting pane under Tools | with your code.
MDIFileList DOWN ARROW documents.
Options | Text Editor | C#. View.Navigate- CTRL + SHIFT + Moves to the next browsed line of View.ServerExplorer CTRL + W, L Displays Server Explorer, which lets
Forward HYPHEN (-) code. you view and manipulate database
Edit.Format- CTRL + K, F or Formats the current selection
Selection CTRL + E, F according to the indentation and IntelliSense Edit.FindInFiles CTRL + SHIFT + F Displays the Find in Files tab of the servers, event logs, message queues,
code formatting settings specified on Find and Replace dialog box. Web services, and other operating
Edit.CompleteWord CTRL + SPACEBAR Completes the current word in the system services.
the Formatting pane under Tools | or CTRL + K, W completion list.
Options | Text Editor | C#. Edit.FindSymbol ALT + F12 Displays the Find Symbol pane of the
Find and Replace dialog box. Window.CloseTool- SHIFT + ESC Closes the current tool window.
Edit.ListMembers CTRL + J or Invokes the IntelliSense® Window
Edit.InsertSnippet CTRL + K, X Displays the Code Snippet Picker. The CTRL + K, L completion list.
selected code snippet will be inserted View.ViewCode F7 Displays the selected item in Code
view of the editor. Data.ShowData- SHIFT + ALT + D Displays the Data Sources window.
at the caret position. Edit.QuickInfo CTRL + K, I Displays the complete declaration for Sources
the specified identifier in your code in View.ViewDesigner, SHIFT + F7 Switches between Design and Source
Edit.SurroundWith CTRL + K, S Displays the Code Snippet Picker. The a Quick Info tooltip. Window.Close- CTRL + F4 Closes the current tab.
selected code snippet will be View.ViewMarkup views for the current document
DocumentWindow
wrapped around the selected text. Edit.ParameterInfo CTRL + SHIFT + Displays the name, number, and type Window.MoveTo- CTRL + F2 Moves focus to the drop-down bar
SPACEBAR or of parameters required for the NavigationBar located at the top of the editor when Window.NextDocu- CTRL + TAB Displays the IDE Navigator, with the
Edit.InvokeSnippet- TAB Inserts the expanded code snippet CTRL K, P specified method. the editor is in Code view or Server mentWindowNav first document window selected.
FromShortcut from the shortcut name.
Make Completion CTRL Causes a visible completion list to Code view.
Edit.Cycle- CTRL + SHIFT + V Pastes text from the Clipboard ring to View.CallHierarchy CTRL + W, K Displays the Call Hierarchy window,
List Transparent become transparent. Edit.Find CTRL + F Displays the Find Quick tab of the which lists callers and callees for a
ClipboardRing the caret location in the file.
Subsequent use of the shortcut key Find and Replace dialog box. given member.
iterates through the items in the
Clipboard ring.
Navigation Edit.GoTo CTRL + G Displays the Go to Line dialog box. View.ZoomIn, CTRL + SHIFT + Increases (>) or decreases (<) the size
View.ZoomOut PERIOD (.) and of contents in the editor.
Edit.NavigateTo CTRL + COMMA (,) Displays the NavigateTo window, Edit.GoToFind- CTRL + / Moves focus to the Find/Command CTRL + SHIFT +
Edit.Replace CTRL + H Displays the replace options in the Combo box on the Standard toolbar.
which allows quick navigation to files, COMMA (,)
Quick Replace tab of the Find and
types, and members. The word at the
Replace dialog box. EditorContext- CTRL + K, T Brings focus to the Call Hierarchy
caret seeds the search.
Menus.Code- window using the member at the
Edit.ReplaceInFiles CTRL + SHIFT + H Displays the replace options on the Window.ViewCall- caret as a top-level node.
Edit.FindAll- SHIFT + F12 or Displays a list of all references for the
Replace in Files tab of the Find and Hierarchy
References CTRL + K, R symbol selected.
Replace dialog box.
Edit.GoToBrace CTRL + ] Moves the caret location to the Edit.NextHighlight- CTRL + SHIFT + Moves the caret to the next or
View.Show- CTRL + PERIOD (.) Displays the available options on the edReference, DOWN ARROW previous highlighted identifier
matching brace in the source file.
SmartTag or SHIFT + ALT + Smart Tag menu. Edit.PreviousHigh- and CTRL + SHIFT + matching the current one.
F10 Edit.GoToDefinition F12 Navigates to the declaration for the lightedReference UP ARROW
selected symbol in code.

Você também pode gostar