Command Palette
In addition to using commands listed in the Textual Editor shortcut menu, you can use the Command Palette, which contains a multitude of additional commands. You can execute a command by clicking on it in the palette or by using shortcut keys if any are assigned.
Invoking the Command Palette
To invoke the Command Palette
Do one of the following:
- Right-click anywhere in the Textual Editor. In the shortcut menu, click the Command Palette command.
- Press F1 on the keyboard.
Quick-access symbols table
The usage of the Command Palette and the content displayed in it depends on the first symbol (the quick-access symbol) used in the Command Palette's search field.
| Symbol | Name | Description and Usage |
|---|---|---|
| : | Go to Line/Column | This symbol is used to navigate the cursor to a specific line. Writing the colon in the search field displays the number of the line in which the cursor is positioned at the time. To access a specific line, type its number after the colon, e.g., ':22'. Shortcut keys: Ctrl+G |
| @ | Go to Symbol | This symbol is used to navigate to a navigate to a specific element by its name. Type the element name you want to search for after the '@' symbol to navigate to the searched element in the textual notation, e.g. '@requirement'. Shortcut keys: Ctrl+Shift+O Use up/down keyboard keys to navigate the displayed search results. Each is highlighted in the textual notation for easy navigation. |
| @: | Go to Symbol by Category | This symbol is used to sort elements by their assigned categories (properties, modules, methods, etc.) |
| > | Show and Run Commands | This symbol is used to display a large selection of various commands you can execute on the textual notation where the cursor is positioned. To search for a specific command type its name after the > symbol, e.g., '>fold'. This is the default quick-access symbol that is displayed in the search field once the Command Palette is displayed. Useful commands 'Toggle High Contrast Theme' - switches the editor to dark mode. |
| (empty) | - | If the search field is empty, select the relevant symbol from the displayed menu containing all quick-access symbols. |