How Visual Studio customizes shortcut keys

Source: Internet
Author: User
Tags lowercase

Tools, options, environment, keyboard, enter the "Code" for the shortcut key you want to change in the "show command contains" on the right, select the shortcut you want to change and reset the new shortcut below.

For example, "Code helper" (that is, code hints) shortcut key "code" is Edit.completeword (edit. Complete the word).

Reference tables for other shortcut keys:

command name shortcut Keys Description

Edit. Collapse To Definition

Ctrl + M,ctrl + O

Automatically determines the logical boundaries (such as procedures) for creating zones in your code, and then hides them.

Edit. Comment Selection

Ctrl + K,ctrl + C

Use the correct comment syntax for the programming language to mark the current line of code as a comment. (vc2003)

Edit. Complete the word

Ctrl + j Alt + RIGHT Arrow

Displays the "full word" based on the current language. (vc2003)

Edit. Delete

Delete

Deletes a character to the right of the cursor.

Edit. Remove Backward

Backspace Shift + Backspace

Deletes a character to the left of the cursor.

Edit. Remove horizontal whitespace

Ctrl + K,ctrl + \

Collapses white space in the selection, or removes the white space next to the cursor if there is no selection.

Edit. Format Document

Ctrl + K,ctrl + D

Applies indentation and space formatting to the language, as specified on the formatting pane of the language in the Text Editor section of the Options dialog box.

Edit. Formatting the selection

Alt + F8 Ctrl + K,ctrl + F

Indents the selected lines of code correctly, based on the surrounding lines of code. (vc2003) (ALT + F8 call Macro Explorer)

Edit. Hide Selection

Ctrl + M,ctrl + H

Hides the selected text. The signal icon marks the position of the hidden text in the file.

editing. Inserting tabs

Tab

Indents a line of text by a specified number of spaces, such as 5. (This shortcut supports multi-line operations)

Edit. Cut lines

Ctrl + lshift + Alt + L

Cuts all selected rows to the Clipboard, and cuts the current row to the Clipboard If nothing has been selected. (vc2003) (Shift + Alt + L does not work)

Edit. Delete Rows

Ctrl + Shift + L

Deletes all selected rows, or deletes the current row if no rows are selected.

Edit. Open New Line

Ctrl + Enter

Inserts a blank line above the insertion point. (regardless of where the cursor is on one line)

Edit. Open New Line

Ctrl + Shift + Enter

Inserts a blank line below the insertion point. (so you don't have to first move the cursor to the beginning or end of the line)

Edit. Line Transpose

Shift + Alt + T

Move the row that contains the insertion point below the next line. (Can be seen as two lines of exchange)

Edit. Convert to Lowercase

Ctrl + U

Changes the selected text to lowercase characters.

Edit. Convert to Uppercase

Ctrl + Shift + U

Changes the selected text to uppercase characters.

Edit. Overtype mode

Insert

Toggles between inserting and overwriting insert modes. Available only when using a text editor.

Edit. Stop hiding the current zone

Ctrl + M,ctrl + U

Removes the outlining information for the currently selected range.

Edit. Stop Outlining

Ctrl + M,ctrl + P

Removes all outlining information from the entire document.

Edit. Swap anchor Points

Ctrl + R,ctrl + P

Swaps the anchor point and end point of the current selection.

Edit. Left Indent

Shift + Tab

Moves the selected row left one tab stop. (This shortcut supports multi-line operations)

Edit. Toggle All Outline Display

Ctrl + M,ctrl + L

Toggles between hidden and displayed states all portions of text that were previously marked as hidden.

Edit. Toggle Bookmarks

CTRL + F2 CTRL + K,ctrl + K

Sets or removes a bookmark at the current line.

Edit. Toggle Outline Display Expand

Ctrl + M,ctrl + M

Toggles the currently selected hidden text portion between hidden and displayed states.

Edit. Toggle Task List Shortcuts

Ctrl + K,ctrl + H

Sets or removes a shortcut at the current line.

Edit. Toggle Line Wrapping

Ctrl + R,ctrl + R

Enables or disables line wrapping in the editor.

Edit. Uncomment selection

Ctrl + K,ctrl + U

Removes the comment syntax from the current line of code.

Edit. View Blank

CTRL + Shift + 8 Ctrl + R,ctrl + W

Show or hide spaces and tab markers.

Edit. Word deletion until the end

Ctrl + Delete

Deletes the word to the right of the insertion point.

Edit. Word Delete until start

Ctrl + Backspace

Deletes the word to the left of the insertion point.

Edit. Word Transpose

Ctrl + Shift + T

Swap the words on either side of the insertion point. For example, the main int changes to int main.

Project shortcut keys

command name shortcut Keys Description
Build. Build Solution CTRL + SHIFT + B Build all the projects in the solution using the current solution configuration.
File. New file CTRL + SHIFT + N Displays the new File dialog box, where you can select a new file to add to the current project.
File. New Project CTRL + N Displays a submenu that lists the types of items that you can add to the currently open project. The icon changes to the previous item type that was added.
File. Open File CTRL + SHIFT + O Displays the Open File dialog box, where you can select an existing file to open.
File. Open Project CTRL + O Displays the Open Project dialog box, where you can add new or existing projects to your solution.
Project. Adding an existing Item CTRL + SHIFT + D Displays the Add Existing Item dialog box.
Project. Adding a new item CTRL + D Displays the Add New Item dialog box, which enables you to select an item to add to the current project.

Debugging shortcut Keys

command name shortcut Keys Description
Debug. All interrupts CTRL + Break Temporarily stops execution of all processes in the debugging session. Applies to run mode only.
Debugging. Breakpoints CTRL + B Displays the Breakpoints dialog box, where you can add and modify breakpoints.
Debug. Call stack CTRL + ALT + C Displays the Call Stack window to display a list of all active procedures or stack frames for the current thread of execution. Applies to run mode only.
Debug. Clear All Breakpoints CTRL + SHIFT + F9 Clears all breakpoints in the project.
Debugging. Enabling breakpoints CTRL + F9 Sets a breakpoint on the current line.
Debugging. Exceptions CTRL + SHIFT + E Displays the Exceptions dialog box.
Debugging. Instant CTRL + ALT + I Displays the Immediate window, in which you can evaluate an expression and execute a single command.
Debugging. Local Variables CTRL + ALT + L Displays the local Variables window to view the variables and their values for each procedure in the current stack frame.
Debugging. Process CTRL + SHIFT + R Displays the Processes dialog box, which allows you to debug multiple programs at the same time in a single solution.
Debugging. Quick Monitoring SHIFT + F9 Displays the Quick Watch dialog box with the current value of the selected expression. Only available in break mode. Use this command to examine the current value of a variable, property, or other expression for which a watch expression has not been defined.
Debug. Restart CTRL + SHIFT + F5 Terminates the debug session, rebuilds, and then starts running the application from the beginning. Available for break mode and run mode.
Debugging. Running the document CTRL + ALT + R Displays the Run document window, which displays the set of documents that are in the process of debugging. Applies to run mode.
Debug. Run to Cursor CTRL + F10 In break mode, continue executing code from the current statement until the selected statement. The current execution line margin indicator appears in the margin indicator bar.
In design mode, start the debugger and execute the code until the cursor position.
Debug. Set Next Statement CTRL + SHIFT + F10 Sets the execution point on the selected line of code.
Debug. Show Next Statement ALT + * In the number key area Highlight the next statement that you want to execute.
Debug. Start F5 Automatically attaches the debugger and runs the application from the startup form specified in the <Project> Properties dialog box. If it is break mode, change to continue.
Debug. Start execution Without debugging CTRL + F5 Run the code without invoking the debugger.
Debug. Statement-wise F11 Executes the code on an itemized statement after executing the ENTER function call. That is, stepping, which is useful for tracking programs.
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.