Visual Studio Code is a lightweight code editor with support for many programming languages through extensions
To install the latest version, use Homebrew:
brew install --cask visual-studio-code
Launch VS Code from the command line.
After that, you can launch VS Code from your terminal:
code .
will open VS Code in the current directorycode myfile.txt
will openmyfile.txt
in VS Code
-
Python - Python code highlighting
To enable auto-formatting on "Save", i.e.
⌘ + S
, configure the following:-
Change the default formatter to
Black
instead ofAutopep8
. Critical to avoid large diffs. Go to Preferences -> User Settings and update the settingpython.formatter.provider
toBlack
-
Enable
Format on Save
Setting: Editor: Format On Save setting on Code -> Preferences -> Settings
-
- ESLint - Useful to check JavaScript errors and helps in auto-formatting the code
- Prettier - JavaScript code formatter
- Markdown Preview - Read Markdown files in VSCode
- GitLens - Supercharge the Git capabilities built into VSCode
- Docker - Create, manage, and debug images from within VSCode
- Paste JSON as Code - Infers types from sample JSON data, then outputs strongly typed models and serializers for working with that data in your desired programming language
- Live Server - Launches a local development server with live reloading for both static and dynamic
- vscode-icons - Adds unique icons to distinguish different file extensions (easier to glance through your directories)