Sunday, March 8, 2009

Code Editor Keys

Code Editor Keys

You spend a lot of time editing code. It is a good idea to learn these keys. It may seem complicated at first, but it really will save you time once you are comfortable with the editor.
Keys Definition
Backspace
Deletes the character to the left of the cursor
Delete
Deletes the character to the right of the cursor
Ctrl+Y
Deletes the line that the cursor is on
Home
Moves the cursor to the beginning of the line the cursor is on
End
Moves the cursor to the end of the line that the cursor is on
Ctrl+Home
Moves the cursor to the first event procedure
Ctrl+End
Moves the cursor to the last event procedure
Ctrl+Down arrow
Displays the next procedure
Ctrl+Up arrow
Displays the previous procedure
Ctrl+Page Down
Goes to the first line of the next procedure
Ctrl+Page Up
Goes to the first line of the current or previous procedure
Shift+F2
Place the cursor in a procedure name and press F2 to see the code for that procedure
Ctrl+Right arrow
Moves one word to the right
Ctrl+Left arrow
Moves one word to the left
Page Down
Displays the next page down in the Code window
Insert
Toggles the Insert mode on or off
Ctrl+X
Cuts a selected block of text
Ctrl+C
Copies a selected block of text
Ctrl+V
Pastes a previously Cut or Copied block of text
Ctrl+Z
Undoes the last thing you did
Ctrl+F
Finds a word that you specify
F1
Displays Help
F3
Finds the next word that you specified previously using the Ctrl+F command
Shift+F3
Finds the last occurrence of the word that you specified previously using the Ctrl+F command
F6
Switches between Code window panes (if the Code window is split)
Ctrl+H
Searches for a word and replaces it with something else
Ctrl+P
Displays the Print dialog box

This table is based on table 14-1 in "Visual Basic 6 for Dummies"

No comments: