CHEATSHEET: Visual Studio Code - Common Shortcuts and Techniques on Windows
published on Thu May 14 2020Visual Studio Code 🥰 is not just a code editor but also an extremely powerful all-purpose text editor. It has innumerable extensions, themes, settings, etc. that can help you set it up exactly the way you like it. However, what makes me really productive inside any program are keyboard shortcuts as I don’t have to lift my hands to press the mouse over and over. Listed below are some of the shortcuts that I regularly use:
Navigating text
Home
- navigate to the start of the lineEnd
- navigate to the end of the lineCtrl + ⬅/➡
- navigate one word at a timeCtrl + Shift + \
- jump between correspoding brackets in codeCtrl + ⬆/⬇
- scroll up or down without moving the cursor
Selecting Text
Ctrl + Shift + ⬅/➡
- select one word at a timeShift + Alt + ⬅/➡
- expand AST (abstract syntax tree) select. It’ll smart select fragments based on the current contextCtrl + Shift + l
- select all occurrences of current selectionAlt + Click
- enter multi cursor mode
Managing text
Alt + ⬆/⬇
- move line(s) up or downShift + Alt + ⬆/⬇
- copy line(s) up or downAlt + z
- toggle word wrap