Visual Basic Keyboard Shortcuts
Go Up to Keyboard Mappings Index
The following table lists the Visual Basic Mapping keyboard shortcuts for the Code Editor.
Note: Keyboard shortcuts that include the
CTRL+ALTkey combination are disabled when the Use CTRL+ALT Keys option is unchecked on the Tools > Options > Editor Options > Key Mappings page.
Alt+[
Finds the matching delimiter (forward)
Alt+]
Finds the matching delimiter (backward)
Alt+F12
Browse symbol at cursor (Delphi)
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
Backspace
Deletes the character to the left of the cursor
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+Backspace
Deletes the word to the left of the cursor
Ctrl+F4
Closes the current page
Ctrl+G
Open file at cursor
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
Deletes a line
Ctrl+Num +
Increases the font size of the Code Editor.
Ctrl+Num -
Decreases the font size of the Code Editor.
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 a line
Ctrl+Y
Deletes to the end of a line
Delete
Deletes a character or block at the cursor
Enter
Inserts a new line character
Insert
Toggles insert mode
Shift+Backspace
Deletes the character to the left of the cursor
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
Tab
Inserts a tab character
F1
Displays a help topic describing:
- A pointed reserved word, directive, or C++ keyword.
- A pointed
identifier(or selected qualified identifier) corresponding to a name of a procedure, function, constant, property, variable, field, type, program, unit, library, or package described in installed CHM help files. - The Code Editor.