Visual Studio Code Tips & Tricks

Subscribe to my newsletter and never miss my upcoming articles

Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. Users can change the theme, keyboard shortcuts, preferences, and install extensions that add additional functionality.

Extensions:

  • GitLens
  • Jupyter
  • Kite AutoComplete
  • Markdown Shortcuts
  • Material Icon Theme
  • Prettier - Code formatter
  • Pylance
  • Python
  • Python Docstring Generator
  • RST Preview
  • Visual Studio IntelliCode

Keyboard shortcuts

  1. Command Palette: Ctrl+Shift+P
  2. Search and open a file: Ctrl+P
  3. Go to Symbol: Ctrl+Shift+O
  4. Move line up and down: Alt+Arrow up/down
  5. Go to line number: Ctrl+G
  6. Cut the Entire Line: Ctrl+X
  7. Select the entire line: Triple-clicking at the line of the line
  8. Markdown preview: Ctrl+K V
  9. Zen Mode: View > Appearance > Toggle Zen Mode
  10. Split view: View > Editor Layout > Split Up
  11. Edit multiple lines simultaneously: Hold Alt and click to add a cursor in the places you want to type or edit the code.

References

No Comments Yet