Skip to content

Instantly share code, notes, and snippets.

@jonepl
Last active April 20, 2024 21:29
Show Gist options
  • Save jonepl/9214d67543874dcb59983bea5117a6b2 to your computer and use it in GitHub Desktop.
Save jonepl/9214d67543874dcb59983bea5117a6b2 to your computer and use it in GitHub Desktop.

VS Code Cheat Sheet

Formating Code on Save

  • In the menu bar Code > Perferences > Settings
  • In the left hand pane Text Editor > Formatting
  • Select the Format on Save radio button

Adding Linting

  • Command + Shift + P
  • Select Python: Select Linter

Adding Error Codes

  • In the code explorer navigate to .vscode
  • Copy and paste the following line into your settings.json file
{
    "python.linting.flake8Args": ["--max-line-length=120", "--ignore=E501, W504"]
}

Testing & Debug

  • The flask icon in VS Code can be used to setup a test explorer. You must install Python Debugger

VS Code Extensions

General

  • nginx
  • docker

Python

  • Python
  • Python Debugger
  • Pylance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment