Use the following key combinations to edit code in the Text Editor window also referred to as the Code Editor window.
Note You can change or create keyboard shortcuts in Keyboard of the Environment options in the Options dialog box.
To | Press |
Undo the last editing action (Undo). | CTRL+Z or ALT+BACKSPACE |
Correctly indent the selected lines of code based on the surrounding lines of code. | ALT+F8 |
Swap the current and previous lines. | ALT+SHIFT+T |
Delete the selection or, if there is no selection, the character to the left of the cursor. | BACKSPACE |
Find the matching brace. | CTRL+] |
Delete the word to the left of the insertion point. | CTRL+BACKSPACE |
Copy the selected text to the Clipboard. | CTRL+C or CTRL+INS |
Delete the word to the right of the insertion point. | CTRL+DELETE |
Move the cursor to the end of the list. | CTRL+END |
Display the Find window. If there is no current Find criteria, places the word under your cursor in the Find box. | CTRL+F |
Find the next occurrence of the current word or selection. | CTRL+F3 |
Display the Find window where you can replace the specified text. | CTRL+H |
Move the cursor to the beginning of the list. | CTRL+HOME |
Display Quick Info. | CTRL+I |
Display list of members. | CTRL+J |
Extend the selection to the matching brace. | CTRL+SHIFT+] |
Extend the selection to the end of the document. | CTRL+SHIFT+END |
Find the previous occurrence of the specified text. | CTRL+SHIFT+F3 |
Extend the selection to the beginning of the file. | CTRL+SHIFT+HOME |
Display Parameter Info. | CTRL+SHIFT+I |
Extend the selection one word to the left. | CTRL+SHIFT+LEFT ARROW |
Extend the selection one word to the right. | CTRL+SHIFT+RIGHT ARROW |
Swap the current and next words or transposes words around operators, for example transposes apple = fruit to fruit = apple. | CTRL+SHIFT+T |
Change the selected text to uppercase characters. | CTRL+SHIFT+U |
Select the current word. | CTRL+SHIFT+W |
Fill in the rest of the word you are typing once you have entered enough characters for the editor to identify the word you want. | CTRL+SPACEBAR |
Swap the characters around the insertion point. | CTRL+T |
Change the selected text to lowercase characters. | CTRL+U |
Scroll the text up one line. | CTRL+UP ARROW |
Insert the Clipboard contents at the insertion point. | CTRL+V or SHIFT+INSERT |
Cut the selected text to the Clipboard. | CTRL+X or SHIFT+DELETE |
Delete the selected lines and place them on the Clipboard (Cut). | CTRL+M |
Restore the previously undone action (Redo). | CTRL+Y or CTRL+SHIFT+Z or ALT+SHIFT+BACKSPACE |
Delete the selected text without placing it on the Clipboard. | DELETE |
Display next overloaded function when the Parameter Info window is displayed. Move the cursor down the list, one entry at a time, when the Member List is displayed. |
DOWN ARROW |
Display previously overloaded function when the Parameter Info window is displayed. Move the cursor up the list, one entry at a time, when the Member List is displayed. |
UP ARROW |
Display context-sensitive documentation for functions, statements, methods, properties, or events. | F1 |
Display help on the Text Editor window. | CTRL+F1 |
Find next occurrence of text specified in the Find window. | F3 |
Display or hide a shortcut. | Hold down CTRL and press KH |
Turn the bookmarks for the current line on and off. | Hold down CTRL and press KK |
Remove all bookmarks. | Hold down CTRL and press KL |
Move the insertion point to the beginning of the next bookmark. | Hold down CTRL and press KN |
Move the insertion point to the beginning of the previous bookmark. | Hold down CTRL and press KP |
Change between box selection and stream selection mode. | Hold down CTRL and press RS |
Show white space. Display and hide spaces and tab marks. | Hold down CTRL and press RW |
Toggle between inserting and replacing text. | INSERT |
Extend the selection down one line. | SHIFT+DOWN ARROW |
Extend the selection up one line. | SHIFT+UP ARROW |
Find previous occurrence of the text specified in the Find window. | SHIFT+F3 |
Extend the selection to the start of the current line. | SHIFT+HOME |
Extend the selection to the end of the current line. | SHIFT+END |
Extend your selection one character to the left. | SHIFT+LEFT ARROW |
Extend your selection one character to the right. | SHIFT+RIGHT ARROW |
Extend the selection down one page. | SHIFT+PAGE DOWN |
Extend the selection up one page. | SHIFT+PAGE UP |
Indent the selected text one tab stop to the right. | TAB |
Indents the selected text one tab stop to the left. | SHIFT+TAB |