Technical notes‎ > ‎

Using Visual Studio Code

It can be tricky to setup a complete Python development environment on Windows. The easiest way to setup is to use anaconda which has built-in Python (also comes with many packages by default such as nltk, numpy, etc.) and use an IDE with it.

  1. Download and install
  2. Install Visual Studio code
  3. Download Visual Studio cheat sheet
  4. Install Python module for Visual Studio code
  5. Enable unittest (File > Preferences > Settings), this will open settings.json. Edit the right pane (USER SETTINGS) to something like this
// Place your settings in this file to overwrite the default settings { "python.unitTest.unittestEnabled": true, "python.unitTest.pyTestEnabled": false, "python.unitTest.nosetestsEnabled": false }
Using a local virtual environment (i.e. project_folder/environment_folder) 
// Put this into .vscode/settings.json
"python.pythonPath": "${workspaceFolder}/env_python3/bin/python"
[To be updated]