How to set up a remote Python environment with VSCode

vscode

  • good editor
  • favorite
  • but python extensions didn’t work
  • why?
  • the app was running inside of a docker container
  • so the extensions (running locally) couldn’t trace back import statements to other places on code

pycharm?

  • just switch right?
  • it was fine, there are sublime shortcut keys (which I use in vscode)
  • it still felt a little klunky tho
  • remote container extension
  • open project where X file is in root dir
  • open from existing Dockerfile
  • install extensions inside of container, and add to dockerfile helper file .devcontainer.json