Visual studio shortcut

Source: Internet
Author: User

Shortcut for "text operation"

Command name shortcut key description
Edit. collapse to definition
Ctrl + M, Ctrl + O
Automatically determine the logical boundaries (such as processes) of the region created in the code, and then hide them.

Edit. Comment the selected content
Ctrl + K, Ctrl + C
Mark the current line of the Code as a comment using the correct annotation syntax of the programming language. (Vc2003)

Edit. Complete word
Ctrl + j Alt + right-click
Displays the complete words based on the current language ". (Vc2003)

Edit. Delete
Delete
Delete a character on the right of the cursor.

Edit. Delete backward
Backspace Shift + Backspace
Delete a character on the left of the cursor.

Edit. Delete horizontal Blank
Ctrl + K, Ctrl + \
Collapse the white space in the selected content. If no white space is selected, the white space next to the cursor is deleted.

Edit. Orchestration document format
Ctrl + K, Ctrl + D
Follow the settings specified in the format settings pane of the language in the "options" dialog box "Text Editor" to apply indentation and space format settings to the language.

Edit. format selected content
Alt + F8 Ctrl + K, Ctrl + F
The selected code lines are correctly indented Based on the surrounding code lines. (Vc2003) (Alt + F8 call macro Resource Manager)

Edit. Hide selected content
Ctrl + M, Ctrl + H
Hide selected text. The signal icon marks the position of hidden text in the file.

Edit. Insert tab
Tab
Indent a text line with a specified number of spaces, for example, five. (This shortcut supports multi-row operations)

Edit. Cut row
Ctrl + L Shift + Alt + L
Cut all selected rows to the clipboard. If no content is selected, the current row is cut to the clipboard. (Vc2003) (Shift + Alt + L does not work)

Edit. Delete row
Ctrl + Shift + L
Delete all selected rows. If no row is selected, delete the current row.

Edit. Open new row
Ctrl + Enter
Insert an empty row above the insertion point. (No matter where the cursor is in a row)

Edit. Open a new row
Ctrl + Shift + Enter
Insert an empty row under the insert point. (In this way, you do not need to move the cursor to the beginning or end of the line first)

Edit. Row transpose
Shift + Alt + T
Move the row containing the insert point to the next row. (It can be seen as a two-row exchange)

Edit. Convert to lowercase
Ctrl + U
Change the selected text to lowercase characters.

Edit. Convert to uppercase
Ctrl + Shift + U
Change the selected text to uppercase.

Edit. Rewrite Mode
Insert
Switch between the insert mode and the rewrite insert mode. Only available when using a text editor.

Edit. Stop hiding the current region
Ctrl + M, Ctrl + U
Remove the outline display information of the currently selected area.

Edit. Stop outline display
Ctrl + M, Ctrl + P
Remove all outline display information from the entire document.

Edit. Switch positioning point
Ctrl + R, Ctrl + P
Switches the positioning point and end point of the selected content.

Edit. Left indent
Shift + Tab
Shifts the selected row to the left of a tab. (This shortcut supports multi-row operations)

Edit. Switch all outline display
Ctrl + M, Ctrl + L
Switch all text sections marked as hidden between the hidden and displayed states.

Edit. Switch bookmarks
Ctrl + F2 Ctrl + K, Ctrl + K
Set or remove bookmarks in the current row.

Edit. Switch outline display
Ctrl + M, Ctrl + M
Switch the currently selected hidden text section between hide and show.

Edit. Switch task list shortcut
Ctrl + K, Ctrl + H
Set or remove shortcuts in the current row.

Edit. Switch to automatic line feed
Ctrl + R, Ctrl + R
Enable or disable automatic line feed in the editor.

Edit. uncomment selected content
Ctrl + K, Ctrl + U
Removes the comment syntax from the current line of the Code.

Edit. View Blank
Ctrl + Shift + 8 Ctrl + R, Ctrl + W
Display or hide spaces and Tab labels.

Edit. The word is deleted until it ends.
Ctrl + Delete
Delete the word to the right of the insert point.

Edit. The word is deleted until it starts.
Ctrl + Backspace
Delete the word on the left of the insert point.

Edit. Transpose
Ctrl + Shift + T
Insert words on both sides of the vertex. For example, the main int is changed to int main.

Project shortcut

Command name shortcut key description
Generate. Generate solution CTRL + SHIFT + B use the current solution configuration to generate all projects in the solution.
File. The new file CTRL + SHIFT + N dialog box is displayed, where you can select a new file to be added to the current project.
File. New Project CTRL + N to display a sub menu, which lists the types of projects that can be added to the current open project. The icon is changed to the type of the previous project to be added.
File. Press CTRL + SHIFT + O to open the file. The "Open File" dialog box is displayed. Select the existing file to open.
File. Open the project CTRL + O to display the "open project" dialog box, from which you can add new or existing projects to the solution.
Project. Add an existing item CTRL + SHIFT + D. The "add existing item" dialog box is displayed.
Project. Add new item CTRL + D the "Add new item" dialog box is displayed, which allows you to select the item to be added to the current project.

"Debug" shortcut
Command name shortcut key description
Debugging. All processes in the debugging session are temporarily stopped by pressing CTRL + BREAK. Only applicable to "running" mode.
Debug. the breakpoint CTRL + B dialog box is displayed, where you can add and modify breakpoints.
Debug. Call the stack CTRL + ALT + C to display the "call stack" window to display the list of all the active processes or stack frames of the current execution thread. Only applicable to "running" mode.
Debug. Clear all breakpoints CTRL + SHIFT + F9 clear all breakpoints in the project.
Debug. Enable the breakpoint CTRL + F9 to set the breakpoint on the current line.
Debugging. Exception CTRL + SHIFT + E: the "exception" dialog box is displayed.
Debug. Press CTRL + ALT + I to display the "instant" window. In this window, you can calculate the expression and execute a single command.
Debug. The local variable CTRL + ALT + L displays the "local variable" window to view the variables and their values for each process in the current stack frame.
Debug. Press CTRL + SHIFT + R to display the "process" dialog box, which allows you to debug multiple programs simultaneously in a single solution.
Debugging. Quick monitor SHIFT + F9 displays the "quick monitor" dialog box with the current value of the selected expression. Applies only to the "interrupt" mode. Use this command to check the current values of variables, attributes, or other expressions that have not defined a monitoring expression for it.
Debugging. Restart CTRL + SHIFT + F5 to terminate the debugging session, regenerate the session, and run the application from the beginning. It can be used in interrupt and run modes.
Debug. Run the document CTRL + ALT + R to display the "run document" window, which displays the document set that is in the debugging process. Applicable to "running" mode.
Debug. Run CTRL + F10 at the cursor. In "interrupted" mode, continue executing the code from the current statement until the selected statement. The "currently executed row" margin indicator appears in the "margin indicator" column.
In "design" mode, start the debugger and execute the code until the cursor position.
Debugging. Set the next statement CTRL + SHIFT + F10 and set the execution point on the selected code line.
Debug. display the next statement in ALT + number key area * to highlight the next statement to be executed.
Debug. Start F5 to automatically append the debugger and run the application from the startup form specified in the <Project> Properties dialog box. If it is in the "interrupt" mode, it is changed to "continue ".
Debug. Run the code without debugging CTRL + F5 without calling the debugger.
Debugging. After the statement F11 is executed and enters the function call, the code is executed one by one. That is, one-step execution, useful for tracking programs!
Debug. jump out of the remaining rows of the function where SHIFT + F11 executes the current execution point.
Debug. Execute the next line of code in step by step F10, but do not execute any function call.
Debug. Stop debugging SHIFT + F5 stop the current application in the running program. It can be used in interrupt and run modes.
Debug. Press CTRL + ALT + H to display the "Thread" window to view all the threads of the current process and their related information.
Debug. Switch the breakpoint F9 to set or remove the breakpoint in the current line.
Debug. Monitoring 1 CTRL + ALT + W, 1 key display "monitoring 1" window, to view the value of the selected variable or monitoring expression.
Debugging. Monitoring 2 CTRL + ALT + W, 2 keys display the "Monitoring 2" window to view the value of the selected variable or monitoring expression.
Debug. Monitoring 3 CTRL + ALT + W, 3 key display "monitoring 3" window, to view the value of the selected variable or monitoring expression.
Debug. Monitor 4 CTRL + ALT + W, 4 key display "monitoring 4" window, to view the value of the selected variable or monitoring expression.

Shortcut for "search and replace"
Command name shortcut key description
Edit. Search CTRL + F. The "Search" dialog box is displayed.
Edit. Search for the next F3 match of the last search text.
Edit. Search for the next selected item CTRL + F3 search for the next match of the currently selected text in the document.
Edit. Search for the previous match in the last SHIFT + F3 search text.
Edit. Search for the last selected item CTRL + SHIFT + F3 to find the words in the previous match or inserted symbol of the selected text.
Edit. Go to the search combo box CTRL + SHIFT + F and place the insert symbol in the "Search/command" box on the "standard" toolbar.
Edit. Hide text ALT + F3, N select or clear the "Search hidden text" option in the "Search" and "replace" dialog boxes.
Edit. case-sensitive match ALT + F3, C select or clear the "case-sensitive match" option for the search and replace operations.
Edit. Regular Expression ALT + F3, R select or clear the "Regular Expression" option that allows special characters. Only applicable to the search, replace, search in file, replace in file dialog box, and search/command box.
Edit. Replace CTRL + H. The "replace" dialog box is displayed.
Edit. Stop searching ALT + F3, and S pause the current "search in files" operation.
Edit. Up ALT + F3, B select or clear the "Search" and "replace" operations "up search" options.
Edit. ALT + F3 for full match. W select or clear the "full match" option for the "Search" and "replace" operations. Only applicable to the search, replace, search in file, replace in file dialog box, and search/command box.

Shortcut for "text navigation"
Command name shortcut key description
Edit. Move the left arrow to move the insert point to the left.
Edit. Right Shift character the right arrow key moves the insert point to the right one character.
Edit. Press CTRL + END at the END of the document to move the insertion point to the last line of the document.
Edit the document. Start CTRL + HOME and move the insertion point to the first line of the document.
Edit. Go to CTRL + G to display the "go to line" dialog box.
Edit. Move to braces CTRL +] to move the insertion point to the next braces in the document.
Edit. Move one row down the arrow key to move the insert point down one row.
Edit. The END of the row moves the insert point to the END of the row.
Edit. HOME at the beginning of the row to move the insert point to the beginning of the row.
Edit. Move the up arrow to move the row to the insert point.
Edit. Move the next bookmarks CTRL + K and CTRL + N to the next one in the document.
Edit. scroll DOWN to page down to scroll DOWN the document or window.
Edit. page up to scroll UP a document or window.
Edit. Move the last bookmarks CTRL + K and CTRL + P to the last one.
Edit. Scroll down a row. Press CTRL + down to scroll down the text line.
Edit. Scroll up a row. Press CTRL + The up arrow to scroll up the text line.
Edit. Press CTRL + page up on the top of the view to move the cursor to the first line at the top of the current window. Only applicable to the "HTML" view of the HTML editor.
Edit. View blank CTRL + R, CTRL + W display or hide spaces and Tab labels.
Edit. Press CTRL + right arrow to move the insert point to the right of a word.
Edit. Press CTRL + left arrow to move the insert point to the beginning of the previous word.
View. view the code F7 and display the selected items in the "code" view of the editor.
View. The view designer SHIFT + F7 displays the selected items in the design view of the editor or designer.

Shortcut for "Window Management"

Command name shortcut key description
Window. Activate the document window ESC close menu or dialog box, cancel ongoing operations, or focus on the current document window.
Window. Close the document window CTRL + F4 close the currently selected document window.
Window. Close tool window SHIFT + ESC close tool window, such as "task list" and "toolbox ".
Window. Next document window CTRL + F6
CTRL + TAB cyclically go through the MDI child window one by one.
Window. Move ALT + F6 in the next pane to the next tool window.
Window. Next split pane F6 move to the next pane of the split pane view of a single document.
Window. Move the next tab CTRL + page down to the document or the next tab in the window.
Window. The previous document window CTRL + SHIFT + F6
CTRL + SHIFT + TAB move to the previous document in the editor.
Window. Move SHIFT + ALT + F6 in the previous pane to the last selected window.
Window. Move SHIFT + F6 from the previous split pane to the previous pane of the document in the split pane view.
Window. Move the previous tab CTRL + page up to the previous tab in the document or window.

"Tool window" shortcut
Command name shortcut key description
View. The document outline CTRL + ALT + T displays the "document outline" window to view the outline of the current document.
View. Object Browser CTRL + ALT + B
F2
The "Object Browser" is displayed to view the classes, properties, methods, events and constants that can be used for packages, as well as the object libraries and processes in the project. In the editor, the F2 key only displays the Object Browser.
View. The output CTRL + ALT + O displays the "output" window, which displays the generated and other status information.
View. The Properties window F4 displays the Properties window.
View. The property page SHIFT + F4 displays the property page of the currently selected item in the Solution Explorer window.
View. Refresh CTRL + R to update the information currently displayed in the Web browser window.
View. Solution Explorer CTRL + ALT + J displays the Solution Explorer window.
View. the "task list" window is displayed with CTRL + ALT + K. in this window, you can customize, classify, and manage tasks, comments, shortcuts, warnings, and errors.
View. The Toolbox CTRL + ALT + X displays the "toolbox ".

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.