VSCode Editor Keybindings

Created
Created
2020 Jul 21 2:2
Tags
Tags

Useful

  • ctrl + c - copy line
  • ctrl + x - cut line
  • ctrl shift + Enter - enter previous line
  • ctrl [ or ] - fold level control
  • alt + up/down - move/exchange line to up/down
  • ctrl + d - select same word
  • ctrl + shift + l - select all current words
  • ctrl + alt + f : format
  • alt + Enter - select searched words
  • f2 - edit variable name in all files
  • shift + alt + up/down - cursor expanding
 
 
 
 
How do I collapse sections of code in Visual Studio Code for Windows?
Code folding by regions has arrived with v1.17. Folding by regions documentation. And v1.19 and 1.23. [Generally you can add a space, for example // region and // endregion to //region and //endregion and it will also work.]
How do I collapse sections of code in Visual Studio Code for Windows?
VS Code - Possible to switch tabs/files with cmd+numbers?
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
VS Code - Possible to switch tabs/files with cmd+numbers?
Select all occurrences of selected word in VSCode
Asked Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate editing or deleting those instances without search and replace, like ِ Alt+ F3 in sublime text Gama11 27.9k 9 9 gold badges 64 64 silver badges 90 90 bronze badges asked Oct 3, 2017 at 7:53 Alaa M.
Select all occurrences of selected word in VSCode
 
 

Recommendations