Last active
March 18, 2021 13:01
-
-
Save savsgio/5be2c6d793554933a32a18dcbb1affa0 to your computer and use it in GitHub Desktop.
Auto-activate python virtualenv in VSCode Integrated Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## File: ~/.bashrc | |
## Your virtualenv is in /home/.virtualenvs/ | |
# Auto-activate python virtualenv | |
if [ ! -z $PYTHONVIRTUALENV ]; then | |
source /home/.virtualenvs/$PYTHONVIRTUALENV/bin/activate | |
fi | |
## File: .vscode/settings.json | |
{ | |
"terminal.integrated.env.linux": { | |
"PYTHONVIRTUALENV": "<name of virtualenv>" | |
} | |
} |
metajiji
commented
Sep 29, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment