-
Notifications
You must be signed in to change notification settings - Fork 9
Setting up Visual Studio Code
The following are some basic tips for setting up Visual Studio Code for use with the tenants2 codebase.
-
You'll want to install all Node and Python dependencies locally on your system as per the Getting started section of the README, even if you're using Docker. This is because VSCode needs to be able to access your dependencies in order to run various development tools (TypeScript, mypy, flake8, and so forth).
(Note that in the future, we might simplify this by using VSCode's recent Developing inside a Container capabilities. You're welcome to give that a spin if you want, but because we haven't tried using it yet, it's not documented here.)
-
Install VSCode's Python extension. Make sure that it is using the Python interpreter that is in your project's pipenv environment (this should be at the bottom-left of the VSCode window).
-
Open the Command Palette and type "workspace settings" and press enter.
A. Type "flake8" into the search field and ensure that "Python > Linting: Flake8 Enabled" is checked.
B. Type "mypy" into the search field and ensure that "Python > Linting: Mypy Enabled" is checked.
-
Use the Command Palette to run the "TypeScript: Select TypeScript Version..." command and choose "Use Workspace Version".
That should be it. Happy coding!