Insert
Insert text at specific positions
Similar to the move commands but to insert text.
Available commandsInsert
Name | id | description |
---|---|---|
Line Start | Insert at start of line | |
Up Line Start | └─ in previous line | |
Down Line Start | └─ in next line | |
Text Start | Insert before first non-whitespace character | |
Up Text Start | └─ in previous line | |
Down Text Start | └─ in next line | |
Text End | Insert after last non-whitespace character | |
Up Text End | └─ in previous line | |
Down Text End | └─ in next line | |
Line End | Insert at end of line | |
Up Line End | └─ in previous line | |
Down Line End | └─ in next line | |
Wrapper | Choose an insert command from a quick-pick menu |
Wrapper command?
Learn more in the Wrapper command documentation.
ArgsInsert
Each insert command (including the wrapper) takes these arguments:
key | type | default | description |
---|---|---|---|
text | string | - | Text to insert |
nextCommand | - | Command to execute after inserting the text |
ExampleInsert
Keyboard shortcutExampleInsert
Here is a command that inserts a semicolon at line end followed by a line break:
VideoExampleInsert
If you are interested on why to use nextCommand
argument when runCommands
command exists, please read this section.