Visual Studio Keyboard Shortcuts

From Appmethod Topics
Jump to: navigation, search

Go Up to Keyboard Mappings Index

The following table lists the Visual Studio Mapping keyboard shortcuts for the Code Editor.

Note: Keyboard shortcuts that include the CTRL+ALT key combination are disabled when the Use CTRL+ALT Keys option is unchecked on the Tools > Options > Editor Options > Key Mappings page.

Shortcut Action

Alt+[

Finds the matching delimiter (forward)

Alt+]

Finds the matching delimiter (backward)

Alt+Backspace

Edit|Undo

Alt+F12

Browse symbol at cursor (Object Pascal)

Alt+Page Down

Goes to the next tab

Alt+Page Up

Goes to the previous tab

Alt+Shift+Backspace

Edit|Redo

Alt+Shift+Down Arrow

Moves the cursor down one line and selects the column from the left of the starting cursor position

Alt+Shift+End

Selects the column from the cursor position to the end of the current line

Alt+Shift+Home

Selects the column from the cursor position to the start of the current line

Alt+Shift+Left Arrow

Selects the column to the left of the cursor

Alt+Shift+Page Down

Moves the cursor down one line and selects the column from the right of the starting cursor position

Alt+Shift+Page Up

Moves the cursor up one screen and selects the column from the left of the starting cursor position

Alt+Shift+Right Arrow

Selects the column to the right of the cursor

Alt+Shift+Up Arrow

Moves the cursor up one line and selects the column from the left of the starting cursor position

Ctrl+Alt+Shift+End

Selects the column from the cursor position to the end of the current file

Ctrl+Alt+Shift+Home

Selects the column from the cursor position to the start of the current file

Ctrl+Alt+Shift+Left Arrow

Selects the column to the left of the cursor

Ctrl+Alt+Shift+Page Down

Selects the column from the cursor position to the top of the screen

Ctrl+Alt+Shift+Page Up

Selects the column from the cursor position to the bottom of the screen

Ctrl+Alt+Shift+Right Arrow

Selects the column to the right of the cursor

Ctrl+F4

Closes the current page

Ctrl+J

Templates pop-up menu

Ctrl+K+C

Adds or removes // to each line in the selected code block to comment the code.

Ctrl+K+E

Converts the word under the cursor to lower case

Ctrl+K+F

Converts the word under the cursor to upper case

Ctrl+L

Search|Search Again

Ctrl+P

Causes next character to be interpreted as an ASCII sequence

Ctrl+Q+[

Finds the matching delimiter (forward)

Ctrl+Q+]

Finds the matching delimiter (backward)

Ctrl+Q+Ctrl+[

Finds the matching delimiter (forward)

Ctrl+Q+Ctrl+]

Finds the matching delimiter (backward)

Ctrl+Q+Y

Deletes to the end of a line

Ctrl+Shift+C

Invokes class completion for the class declaration in which the cursor is positioned

Ctrl+Shift+End

Selects from the cursor position to the end of the current file

Ctrl+Shift+Home

Selects from the cursor position to the start of the current file

Ctrl+Shift+Left Arrow

Selects the word to the left of the cursor

Ctrl+Shift+PgDn

Selects from the cursor position to the bottom of the screen

Ctrl+Shift+PgUp

Selects from the cursor position to the top of the screen

Ctrl+Shift+Right Arrow

Selects the word to the right of the cursor

Ctrl+Shift+Tab

Displays the previous window in the buffer list

Ctrl+T

Deletes the word to the left of the cursor

Ctrl+Tab

Displays the next window in the buffer list

Ctrl+Y

Deletes to the end of a line

Shift+Down Arrow

Moves the cursor down one line and selects from the right of the starting cursor position

Shift+End

Selects from the cursor position to the end of the current line

Shift+Enter

Inserts a new line character

Shift+Home

Selects from the cursor position to the start of the current line

Shift+Left Arrow

Selects the character to the left of the cursor

Shift+PgDn

Moves the cursor down one line and selects from the right of the starting cursor position

Shift+PgUp

Moves the cursor up one screen and selects from the left of the starting cursor position

Shift+Right Arrow

Selects the character to the right of the cursor

Shift+Space

Inserts a blank space

Shift+Up Arrow

Moves the cursor up one line and selects from the left of the starting cursor position