现在的位置: 首页 > 综合 > 正文

Editting Shortcuts for Visual Studio 2005

2014年02月25日 ⁄ 综合 ⁄ 共 3983字 ⁄ 字号 评论关闭

Command Name
Shortcut Keys
Description
Edit.BreakLine
ENTER
Inserts a new line.

NoteNote

In some editors, such as Design view of the HTML Designer, ENTER behaves differently depending on the context. For more information, see the documentation for the editor you are using.

Edit.CharTranspose
CTRL + T

Swaps the characters on either side of the cursor. For example, AC|BD becomes AB|CD. Available only in text editors.

Edit.CollapseTag
CTRL + M, CTRL + T

Hides the selected HTML tag and displays an ellipsis (. . .) instead. You can view the complete tag as a tooltip by putting the mouse pointer over the . . ..

Edit.CollapseToDefinitions
CTRL + M, CTRL + O

Automatically determines logical boundaries for creating regions in code, such as procedures, and then hides them.

Edit.CommentSelection
CTRL + E, CTRL + C

Marks the current line of code as a comment by using the correct comment syntax for the programming language.

Edit.CompleteWord
CTRL + K, CTRL + W
Displays Word Completion based on the current language.
Edit.CopyParameterTip
CTRL + SHIFT + ALT + C

Copies the parameter information displayed by IntelliSense to the Clipboard.

Edit.DeleteBackwards
BACKSPACE
Deletes one character to the left of the cursor.
Edit.DeleteHorizontalWhitespace
CTRL + E, CTRL + /

Collapses white space in the selection, or deletes white space adjacent to the cursor if there is no selection.

Edit.FormatDocument
CTRL +E, CTRL + D

Applies the indenting and space formatting for the language as specified on the Formatting pane of the language in the Text Editor section of the Options dialog box.

Edit.FormatSelection
CTRL + E, CTRL + F

Correctly indents the selected lines of code based on the surrounding lines of code.

Edit.GenerateMethodSub
CTRL + K, CTRL + M

Creates a new method declaration for the method call that the cursor is resting in.

For more information, see Generate Method Stub.

Edit.HideSelection
CTRL + M, CTRL + H

Hides the selected text. A signal icon marks the location of the hidden text in the file.

Edit.InsertTab
TAB
Indents the line of text a specified number of spaces.
Edit.InsertSnippet
CTRL + K, CTRL + X
Insert Code Snippet.

For more information, see Code Snippets (C#).

Edit.LineCut
CTRL + L

Cuts all selected lines, or the current line if nothing has been selected, to the Clipboard.

Edit.LineDelete
CTRL + SHIFT + L

Deletes all selected lines, or the current line if no selection has been made.

Edit.LineOpenAbove
CTRL + ENTER
Inserts a blank line above the cursor.
Edit.LineOpenBelow
CTRL + SHIFT + ENTER
Inserts a blank line below the cursor.
Edit.LineTranspose
SHIFT + ALT + T
Moves the line that contains the cursor below the next line.
Edit.ListMembers
CTRL + J

Lists members of the current class for statement completion when you are modifying code.

Edit.MakeLowercase
CTRL + U
Changes the selected text to lowercase characters.
Edit.MakeUppercase
CTRL + SHIFT + U
Changes the selected text to uppercase characters.
Edit.OverTypeMode
INSERT

Toggles between insert and overtype insertion modes. Available only when you are working in text editors.

Edit.ParameterInfo
CTRL + SHIFT + SPACEBAR

Displays a tooltip that contains information about the current parameter, based on the current language. Available only in Source view of the HTML Designer.

Edit.PasteParameterTip
CTRL + SHIFT + ALT + P

Pastes the previously copied parameter information from IntelliSense to the location indicated by the cursor.

Edit.StopHidingCurrent
CTRL + M, CTRL + U
Removes the outlining information for the currently selected region.
Edit.StopOutlining
CTRL + M, CTRL + P
Removes all outlining information from the whole document.
Edit.SwapAnchor
CTRL + E, CTRL + A
Swaps the anchor and end points of the current selection.
Edit.TabLeft
SHIFT + TAB
Moves selected lines to the left one tab stop.
Edit.ToggleAllOutlining
CTRL + M, CTRL + L

Toggles all previously marked hidden text sections between hidden and display states.

Edit.ToggleOutliningExpansion
CTRL + M, CTRL + M

Toggles the currently selected hidden text section between the hidden and display state.

Edit.ToggleTaskListShortcut
CTRL + E, CTRL + T
Sets or removes a shortcut at the current line.
Edit.ToggleWordWrap
CTRL +E, CTRL + W
Enables or disables wordwrap in an editor.
Edit.UncommentSelection
CTRL + E, CTRL + U
Removes the comment syntax from the current line of code.
Edit.ViewWhiteSpace
CTRL + E, CTRL + S
- or -
CTRL + R, CTRL + W
Shows or hides spaces and tab marks.
Edit.WordDeleteToEnd
CTRL + DELETE
Deletes the word to the right of the cursor.
Edit.WordDeleteToStart
CTRL + BACKSPACE
Deletes the word to the left of the cursor.
Edit.WordTranspose
CTRL + SHIFT + T

Transposes the words on either side of the cursor. For example, |End Sub would be changed to read Sub End|.

 

抱歉!评论已关闭.