Skip to content

Instantly share code, notes, and snippets.

@fahofmeister
Created June 22, 2021 12:08
Show Gist options
  • Save fahofmeister/fea4be9f5c2cc1267cf4a03b7291341d to your computer and use it in GitHub Desktop.
Save fahofmeister/fea4be9f5c2cc1267cf4a03b7291341d to your computer and use it in GitHub Desktop.
VS Code settings to work with Python Virtual Environment

Remarks

"python.pythonPath": folder for the venv Python interpreter

"python.terminal.activateEnvironment": activates venv automatically in a new terminal

"terminal.integrated.cwd": set the working directory for new terminal windows

"python.teminal.executeInFileDir": run a file in file's directory instead of the current folder

"python.terminal.activateEnvInCurrentTerminal": activate venv in current terminal window

{
"python.pythonPath": "venv\\Scripts\\python.exe",
"python.terminal.activateEnvironment": true,
"terminal.integrated.cwd": ".\\src",
"python.terminal.executeInFileDir": true,
"python.terminal.activateEnvInCurrentTerminal": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment