Skip to content

Instantly share code, notes, and snippets.

@AjkayAlan
Last active February 19, 2020 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AjkayAlan/23de9f8a4c75aa341aeb880379dccc0b to your computer and use it in GitHub Desktop.
Save AjkayAlan/23de9f8a4c75aa341aeb880379dccc0b to your computer and use it in GitHub Desktop.
VSCodeSetup

My VSCode Setup

Install needed CLI tools

pip install flake8
pip install autopep8

Install Extensions

Python
ESLint
vscode-icons
Prettier - Code formatter
YAML

Set Settings.json

{
    "workbench.startupEditor": "newUntitledFile",
    "python.linting.enabled": true,
    "python.linting.flake8Enabled": true,
    "editor.formatOnSave": true,
    "files.trimTrailingWhitespace": true,
    "python.formatting.provider": "autopep8",
    "python.formatting.autopep8Args": [
        "--aggressive"
    ],
    "python.linting.pylintEnabled": false,
    "workbench.iconTheme": "vscode-icons",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact"
    ],
    "eslint.autoFixOnSave": true,
    "eslint.alwaysShowStatus": true,
    "terminal.integrated.fontFamily": "'MesloLGM NF'",
    "python.jediEnabled": false,
}

Add optional settings to Settings.json

If using pyenv, make vscode use your shim. For example, on Mac:

"python.pythonPath": "/Users/YourUsernameHere/.pyenv/shims/python"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment