New VS Code shortcuts I'm learning
This is a reference for myself of some of the new VS Code shortcuts I'm learning to further reduce hand movement while editing.
Macros
I installed the Keyboard Macro Beta extension to enable Vim-like macros. This allows you to record, then play back (typically single-line) edits. * Cmd F9 => Start/finish macro recording * Cmd F10 => Play back macro
Cursor movement
- Mod-U-Left/Right => Jump to the next word
- Mod-I-Left/Right => Jump to the next word part, typically the next section of the word separated by
_
Multi-line edits
- Mod-P-Up/Down => Add cursor above/below.
- Mod-P-PageUp/PageDown => Add cursors to top/bottom. (Multiline cursor can be used to play back a macro on multiple lines)
- Cmd-L => Convert highlights to selection
Posted by Abraham