Pass PYTHONPATH in 1 minute with VS Code

I check it every time I start a project, but it's a record because I'm wasting time because only the setting method of Path (/ usr / local / bin / python3) of the Python command appears.

Create an .env file and

sh:/path/to/project/.vscode/.env


PYTHONPATH=./src:$PYTHONPATH

Specify that .env file in settings.json.

json:/path/to/project/.vscode/settings.json


{
    "python.envFile": "/path/to/project/.vscode/.env"
}

Only this!

Recommended Posts

Pass PYTHONPATH in 1 minute with VS Code
Use Python in Anaconda environment with VS Code
Python with VS Code (Windows 10)
Write Spigot in VS Code
VS Code settings for developing in Python with completion
Revive symbol search in Python workspace with VS Code
Debug Python with VS Code
Try running Jupyter with VS Code
Install python with mac vs code
Debug settings in virtual environment when using Pipenv with VS Code
(For myself) Put Flask in VS Code
Display Japanese graphs with VS Code + matplotlib
VS Code Pylint is annoying with import! !! !! !!
How to use VS Code (code server) with Google Colab in just 3 lines
Argument implementation (with code) in your own language
I tried Flask with Remote-Containers of VS Code
Python (Windows 10) Virtual Environment / Package with VS Code
VS Code settings
Debug with VS Code using boost python numpy
Achieve scraping with Python & CSS selector in 1 minute
Use Docker development container conveniently with VS Code
Make your Python environment "easy" with VS Code
Build a python execution environment with VS Code
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
Edit and debug the code in the Raspberry Pi with VS Code's SSH connection feature
Morphological analysis and tfidf (with test code) that can be done in about 1 minute
Add auto-completion to EV3 Micropyhon programming in VS Code
Specific sample code for working with SQLite3 in Python
Try touching the micro: bit with VS Code + Python
VS Code says there is an error in cv2
Enable intellisense for external libraries with Pipenv + VS Code
Expose settings.json for efficient Python coding in VS Code
Remote debug Django environment created with docker-compose with VS Code
Strengthen with code test ⑨
Strengthen with code test ③
Strengthen with code test ⑤
Strengthen with code test ④
Strengthen with code test ②
Hamming code with numpy
Strengthen with code test ①
Strengthen with code test ⑧
Strengthen with code test ⑨
Settings when developing App Engine / Python apps with VS Code
Let's run jupyter natively supported by VS Code with python3.8
Try Fortran with VS Code up to debug settings. [Win10]
How to use VS Code in venv environment on windows
Settings to debug the contents of the library with VS Code
The story that Python stopped working with VS Code (Windows 10)
Using jupyter notobook with VS Code (mac OS) (personal memo)
Comfortable LaTeX with Windows Subsystem for Linux and VS Code
UpNext2 Development Record # 1 Build Python CI environment in VS Code
I want to be able to run Python in VS Code
Try HeloWorld in your own language (with How to & code)
Build a Python environment with WSL + Pyenv + Jupyter + VS Code