- Command Line Interface (CLI) command
- VSCode command
- Command palette
- Git integration
- Installed extension
- Recommended extension
- See also
Visual Studio Code (VSCode) is a lightweight Integrated Development Environment (IDE) that can become super powerful with extensions and plugins installed.
Command Line Interface (CLI) command
- Open a file.
code <FILE_NAME>
- Open a directory.
code <DIRECTORY_NAME>
VSCode command
- Move cursor by word.
- Ctrl + Left / Right
- Cut line.
- Ctrl + X
- Highlight line.
- Ctrl + L
- Highlight lines.
- Shift + Up / Down
- Move line.
- Alt + Up / Down
- Toggle comment.
- Highlight lines and then Ctrl + /
- Highlight words matching the current word.
- Ctrl + D
- Press D multiple times to highlight multiple occurrences.
- Set cursors.
- Alt + Left click
- Click multiple times to set multiple cursors.
- Alt + Shift + Up / Down
- Set multiple cursors at the same position across lines.
- Alt + Left click
- Open terminal.
- Ctrl + `
- Clear terminal (not working for me).
- Ctrl + K
Command palette
- Open the command palette.
- Ctrl + P
- Search for a file.
- Type the file name on the command palette.
- Search for a supported command.
- Ctrl + Shift + P
- If already on the command palette, type > (Shift + .).
- Search for a command like toggle minimap.
- Search for a symbol.
- Ctrl + Shift + .
- If already on the command palette, type @.
- Search for a global symbol.
- If already on the command palette, type #.
- Go to a line.
- Ctrl + G
- If already on the command palette, type :.
- Manage tasks.
- If already on the command palette, type >tasks.
- Manage snippets.
- If already on the command palette, type >snippets.
- Rename variable or function (not working for me).
- Shift + Alt + F12
- Rename every reference at once.
Git integration
- Deeply nested file
- Use
\between directories and files to create a deeply nested file.
- Use
Installed extension
- Code Spell Checker
- Prettier - Code formatter
- HTML Format
- HTML CSS Support
- Python
- Pylance
- Python Debugger
Recommended extension
- Docker
- Docker DX
- Quokka: Execute and show the output of JavaScript inline code.
- Auto rename tag: Auto rename paired HTML tag.
- Add jsdoc comments: Add jsdoc @param and @return tags for selected functions.
- Better comments: Improve code commenting by annotating with alert.
- GitLens: Supercharge the Git capabilities.
- Remote repositories: Remotely browse and edit a GitHub repository.
- Remote SSH: Open any folder on a remote machine using SSH.
- Remote containers: Open any folder inside a Docker container.
- Flutter snippet: Use snippets to reduce repetitive work.
- Paste JSON as code: Copy JSON and paste as TypeScript, Go, C++, and more.