Editing
Edit.CollapseToDefinitions
CTRL + M, O
Collapses existing regions to provide a high-level view of the types and members in the source file.
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.FormatDocument
CTRL + K, D or CTRL + E, D
Formats the current document according to the indentation and code formatting settings specified on the Formattingpane 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 | Text Editor | C#.
Edit.InsertSnippet
CTRL + K, X
Displays the Code Snippet Picker. The selected code snippet will be inserted at the cursor position.
Edit.StopOutlining
CTRL + M, P
Removes all outlining information from the whole document.
Edit.SurroundWith
CTRL + K, S
Displays the Code Snippet Picker. The selected code snippet will be wrapped around the selected text.
Edit.ToggleAllOutlining
CTRL + M, L
Toggles all previously collapsed outlining regions between collapsed and expanded states.
Expand Code Snippet
[TAB]
Expand Code Snippet
Edit.ToggleOutliningExpansion
CTRL + M, M
Toggles the currently selected collapsed region between the collapsed and expanded state.
Edit.UncommentSelection
CTRL + K, U or CTRL + E, U
Removes the // at the beginning of the current line or every line of the current selection.
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 theQuicktab of theFind and Replacedialog box.
Edit.ReplaceInFiles
CTRL + SHIFT + H
Displays the replace options on theIn Filestab of theFind and Replacedialog box.
View.ShowSmartTag
CTRL + . or SHIFT + ALT + F10
Displays the available options on the smart tag menu.
Edit.InvokeSnippetFromShortcut
TAB
Inserts the expanded code snippet from the shortcut name.
File
File.NewProject
CTRL + SHIFT + N
Displays theNew Projectdialog box.
File.OpenProject
CTRL + SHIFT + O
Displays theOpen Projectdialog box, where existing projects can be added to the solution.
Project.AddClass
SHIFT + ALT + C
Displays theAdd New Itemdialog box and selects Class template as default.
Project.AddExistingItem
SHIFT + ALT + A
Displays theAdd Existing Itemdialog box, where existing files can be added to the current project.
Project.AddNewItem
CTRL + SHIFT + A
Displays theAdd New Itemdialog box, where a new file can be added to the current project.
Window.ShowEzMDIFileList
CTRL + ALT + DOWN ARROW
Displays a pop-up listing of all open documents.
Edit.OpenFile
CTRL + O
Displays theOpen Filedialog box where a file can be selected to be opened. This does not add the file to the project.
IntelliSense
Edit.CompleteWord
CTRL + SPACE or CTRL + K, W
Completes the current word in the completion list.
Edit.ListMembers
CTRL + J or CTRL + K, L
Invokes the IntelliSense completion list.
Edit.QuickInfo
CTRL + K, I
Displays the complete declaration for the specified identifier in your code in a Quick Info tool tip.
Edit.ParameterInfo
CTRL + SHIFT + SPACE or CTRL K, P
Displays the name, number and type of parameters required for the specified method.
Navigation
Edit.FindAllReferences
SHIFT + F12 or CTRL + K, R
Displays a list of all references for the symbol selected.
Edit.GoToBrace
CTRL + ]
Moves the cursor location to the matching brace in the source file.
Edit.GoToDefinition
F12
Navigates to the declaration for the selected symbol in code.
Edit.GoToNextLocation
F8
Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Subsequent invocations will move to the next item in the list.
Edit.IncrementalSearch
CTRL + I
Activates incremental search. If incremental search is on, but no input is passed, the previous search query is used. If search input has been found, next invocation searches for the next occurrence of the input text.
View.ClassViewGoToSearchCombo
CTRL + K, CTRL + V
Brings focus to theClass View searchbox.
View.ForwardBrowseContext
CTRL + SHIFT + 7
Moves to the next item called in code in the current file. Uses the Go To Definition navigation stack.
View.NavigateBackward
CTRL + MINUS SIGN (-)
Moves to the previously browsed line of code.
View.NavigateForward
CTRL + SHIFT + MINUS SIGN (-)
Moves to the next browsed line of code.
View.PopBrowseContext
CTRL + SHIFT + 8
Moves to the previous item called in code in the current file. Uses the Go To Definition navigation stack.
Edit.FindInFiles
CTRL + SHIFT + F
Displays theIn Filestab of theFind and Replacedialog box.
Edit.FindSymbol
ALT + F12
Displays theFind Symbolpane of theFind and Replacedialog box.
View.ViewCode
F7
Displays the selected item inCodeview of the editor.
View.ViewDesigner
SHIFT + F7
Switches toDesignview for the current document. Available only inSourceview.
View.ViewMarkup
SHIFT + F7
Switches toSourceview for the current document. Available only inDesignview.
Window.MoveToNavigationBar
CTRL + F2
Moves the cursor to the drop-down bar located at the top of the code editor when the editor is inCodeview orServer Codeview.
Edit.Find
CTRL + F
Displays theQuicktab of theFind and Replacedialog box.
Edit.GoTo
CTRL + G
Displays theGo To Linedialog box.
Edit.GoToFindCombo
CTRL + /
Puts the cursor in theFind/Commandbox on theStandardtoolbar.
Refactoring
Refactor.EncapsulateField
CTRL + R, E
Displays theEncapsulate Fielddialog box, which allows creation of a property from an existing field and updates all references to use the new property.
Refactor.ExtractInterface
CTRL + R, I
Displays theExtract Interfacedialog box, which allows creation of a new interface with members derived from an existing class, struct, or interface.
Refactor.ExtractMethod
CTRL + R, M
Displays theExtract Methoddialog box, which allows creation of a new method from the selected code.
Refactor.PromoteLocalVariabletoParameter
CTRL + R, P
Moves a variable from a local usage to a method, indexer, or constructor parameter and updates all call sites appropriately.
Refactor.RemoveParameters
CTRL + R, V
Displays theRemove Parametersdialog box, which allows removal of parameters from methods, indexers, or delegates by changing the declaration at any locations where the member is called.
Refactor.Rename
CTRL + R, R or F2
Displays theRenamedialog box, which allows renaming all references for an identifier.
Refactor.ReorderParameters
CTRL + R, O
Displays theReorder Parametersdialog box, which allows changes to the order of the parameters for methods, indexers, and delegates.
Window
View.ClassView
CTRL + W, C
Displays theClass Viewwindow.
View.CodeDefinitionWindow
CTRL + W, D
Displays theCode Definitionwindow.
View.CommandWindow
CTRL + W, A
Displays theCommandwindow, where commands can be invoked to manipulate the integrated development environment (IDE).
View.ErrorList
CTRL + W, E
Displays theError Listwindow.
View.ObjectBrowser
CTRL + W, J
Displays theObject Browser.
View.Output
CTRL + W, O
Displays theOutputwindow, where status messages can be viewed at run time.
View.PropertiesWindow
CTRL + W, P
Displays thePropertieswindow, which lists the design-time properties and events for the currently selected item.
View.SolutionExplorer
CTRL + W, S
DisplaysSolution Explorer, which lists the projects and files in the current solution.
View.TaskList
CTRL + W, T
Displays theTask Listwindow, which displays custom tasks, comments, shortcuts, warnings and error messages.
View.Toolbox
CTRL + W, X
Displays theToolbox, which contains controls that can be included or used with your code.
View.ServerExplorer
CTRL + W, L
DisplaysServer Explorer, which lets you view and manipulate database servers, event logs, message queues, Web services, and other operating system services.
Window.CloseToolWindow
SHIFT + ESC
Closes the current tool window.
Data.ShowDataSources
SHIFT + ALT + D
Displays theData Sourceswindow.
Window.CloseDocumentWindow
CTRL + F4
Closes the current tab.
Window.NextDocumentWindowNav
CTRL + TAB
Displays the IDE Navigator, with the first document window selected.
Build
Build.BuildSolution
F6 or CTRL + SHIFT + B
Builds all the projects in the solution.
Build.BuildSelection
SHIFT + F6
Builds the selected project and its dependencies.
Debugging
Debug.Autos
CTRL + D, A
Displays theAutoswindow, which displays variables used in the current line of code and the preceding line of code.
Debug.CallStack
CTRL + D, C
Displays theCall Stackwindow, which displays a list of all active methods or stack frames for the current thread of execution.
Debug.Immediate
CTRL + D, I
Displays theImmediatewindow, where expressions can be evaluated.
Debug.Locals
CTRL + D, L
Displays theLocalswindow, which displays the local variables and their values for each method in the current stack frame.
Debug.QuickWatch
CTRL + D, Q
Displays theQuickWatchdialog box that has the current value of the selected expression.
Debug.Start
F5
Launches the application under the debugger based off of the settings from the startup project. When in Break mode, invoking this command will run the application until the next breakpoint.
Debug.StartWithoutDebugging
CTRL + F5
Launches the application without invoking the debugger.
Debug.StepInto
F11
Executes code one statement at a time, following execution into method calls.
Debug.StepOut
SHIFT + F11
Executes the remaining lines of a method in which the current execution point is located.
Debug.StepOver
F10
Executes the next line of code, but does not follow execution through any method calls.
Debug.StopDebugging
SHIFT + F5
Stops running the current application under the debugger.
Debug.ToggleBreakpoint
F9
Sets or removes a breakpoint at the current line.
Debug.Watch
CTRL + D, W
Displays theWatchwindow, which displays the values of selected variables or watch expressions.
Debug.EnableBreakpoint
CTRL + F9
Toggles the breakpoint between disabled and enabled.
Make Datatip Transparent
[CTRL]
Causes a visible datatip to become transparent.
Notes:
- These key bindings are only available through theVisualC# Development Settings. To change to the Visual C# Development settings, go to Tools | Import and Export Settings and selectReset all Settingsthen selectVisual C# Development Settings.
- To customize the key bindings for these commands, go to Tools | Options | Environment | Keyboard.
Source:http://geekswithblogs.net/shahed/archive/2007/09/24/115574.aspx
分享到:
相关推荐
Your hands-on guide to Visual C# fundamentals Expand your expertise—and teach yourself the fundamentals of Microsoft Visual C# 2013. If you have previous programming experience but are new to Visual ...
Visual C# and Databases is a tutorial that provides a detailed introduction to using Visual C# for accessing and maintaining databases. Topics covered include: database structure, database design, ...
应用程序设计编制(Visual C#平台)Visual C# .NET试题汇编(程序员级)
Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# 示例 源码Visual C# ...
完全手册Visual C# 2008开发技术详解
《高等学校计算机应用规划教材:Visual C# 2010程序设计教程》详细介绍了Visual C# 2010程序设计的基础知识、基本方法和应用技巧,共分14章,主要内容包括.NET平台与Visual Studio 2010开发环境、C#语言基础及面向...
Visual C#2010新增了大量可圈可点的丰富特性,《Visual C# 2010从入门到精通:Step by Step》围绕着基础知识和这些新特性全面介绍了如何利用Visual Studio2010和.NET Framework 4.O编写应用程序。书中沿袭深受读者...
Visual C# 2005从入门到精通,初学者必备资料;
Visual C# Homework Projects: A Computer Programming Tutorial by Philip Conrod English | 7 Aug. 2017 | ASIN: B074N8QQG3 | 920 Pages | AZW3 | 23.48 MB Visual C# programming concepts are taught while ...
第1章 Visual C#2008与窗体界面 第2章 Visual C# 2008与图形图像 第3章 Visual C#2008与多媒体 第4章 Visual C#2006与数据库 第5章 Visual C#2008的SQL查询与图表技朮 第6章 Visualc#2008的打印与水晶报表技术 ...
Visual C# .NET程序设计经典。经典编程实例源代码,分章节发送。
Visual C# .NET程序设计经典 配套光盘 科学工业出版社
The authors focus on the tool that beginners use most often to program C#, the Visual C# 2012 development environment in Visual Studio 2012. Beginning Microsoft Visual C# 2012 Programming offers ...
书第1,2章分别介绍了使用Visual C#和SQL Server开发数据库应用程序的基本知识,第3章~第10章,通过开发8个完整实用的数据库应用程序,系统全面地介绍了用Visual C#和SQL Server来进行数据库应用程序开发的各种技术...
Visual C# 2010从入门到精通(周靖).pdf,本书分六部分,共二十九章,内容包括:Visual C#和Visual Studio 2010概述、理解C#语言、创建组件、操纵Windows应用程序、管理数据、使用Visual Studio 2010构建专业解决方案...
Visual C# 2005 开发技术,压缩包里是PDF格式的高清版本
Visual C#通用范例开发金典_第1章
Visual C#.NET开发实践:Visual C#.NET开发实践.rar
Visual C#2008从入门到精通(微软技术丛书) Visual C#2008 step by step PDF英文完整版
微软开发的一种面向对象的编程语言。微软.NET开发环境的重要组成部分