- See if you have Visual Studio Code installed by looking in your apps. If you don't, have it installed, install it from here
- Configure Visual Studio Code to be your editor for git. From the command line run:
git config --global core.editor "code -w"
- Mac users: Set Visual Studio Code to open with
code
from the command line outside VS Code. Instructions here, presscommand
+shift
+p
- Select
Shell Command: Install 'code' command in PATH
. Windows users should have the functionality automatically. - Install the
Python
extension for Visual Studio Code. Click on the Extensions icon in the left side bar and search forPython
. Select and install it. - Make
black
your autoformatter. In the top menu bar goCode
->Preferences
->Settings
and typeblack
. Select UnderPython > Formating: Provider
selectblack
. You may need topip install black
on the command line at some point along the way. It must be installed in your active environment.
Last active
December 5, 2021 14:39
-
-
Save discdiver/03e97cbc8528088ad57821e80fdc201c to your computer and use it in GitHub Desktop.
How to set up Visual Studio Code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment