VS Code

VS Code (Visual Studio Code) is an open-source code editor developed by Microsoft. It is highly customizable with extensions to suit various development needs.

Install

brew install --cask visual-studio-code

Extensions

Settings

Create the settings file.

mkdir -p .vscode && touch .vscode/settings.json

General settings

{
  "editor.codeActionsOnSave": {
    "source.organizeImports": "always"
  },
  "editor.formatOnSave": true,
  "editor.trimAutoWhitespace": true,
  "files.insertFinalNewline": true,
  "files.trimFinalNewlines": true,
  "files.trimTrailingWhitespace": true,
}

Python settings

{
  "[python]": {
    "editor.defaultFormatter": "ms-python.black-formatter",
    "editor.formatOnSave": true
  }
}
VS Code
Interactive graph
On this page
Install
Extensions
Settings
General settings
Python settings