-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting to show (venv) in terminal anyways #22917
Comments
This was driving me crazy |
This is also beneficial if you have multiple virtual environments, since it used to show the name of the virtual environment you were actively in (if they have different names), and remind you if you needed to close that terminal and reopen. |
+1 - removing that is not a helpful feature. |
Hi all, please note the inability to show The limitation comes from VS Code and Powershell itself, as none of them provide us with an environment variable that we can set to change the terminal prompt. Interested folks can try using "Command prompt" shell instead, use |
What about git bash on Windows? Can it work in there?
…On Tue, 20 Feb 2024, 20:47 Kartik Raj, ***@***.***> wrote:
Hi all, please note the inability to show (venv) is a limitation rather
than a feature, of the new way of activating environments via environment
variables. If you click "Learn more", it should have more details: link
<https://github.com/microsoft/vscode-python/wiki/Activate-Environments-in-Terminal-Using-Environment-Variables>
.
The limitation comes from VS Code and Powershell itself, as none of them
provide us with an environment variable that we can set to change the
terminal prompt.
Interested folks can try using "Command prompt" shell instead, use Select
default profile to change the shell, which should have the "venv".
—
Reply to this email directly, view it on GitHub
<#22917 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSLKREC6AOW2SMJBM7T6OTYURIIVAVCNFSM6AAAAABDJ3MS7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGY2DIOJTGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@bigalnz Git bash is not supported by the Python extension currently. |
So this auto activation of the terminal is a feature of the Python plugin - not native VSCode? |
A question on So here may also be worth voting for to get coverage on this question : https://stackoverflow.com/questions/78005138/make-venv-default-terminal-for-project-in-vscode/78030464#78030464 |
I'm changing this to a feature request, and if it gets enough upvotes, maybe VS Code can consider us giving us such a feature: #22917 (comment). |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
Issue #23008 has gifs showing an old extension version activating all 3 on windows 10 |
I often use the python launcher |
I was looking for this because my Git Bash terminal was not sourcing my Python [[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path bash)" |
I'm going to close this in favour of #22611 which would bring back the old solution as at least an option. You can also opt out of the experiment if you want. |
i think the title is pretty self explanatory.
since the last vscode update vs code hides the (venv) or (virual enviroment name here) text in the terminal, which is a small thing but still brought up issues cause trusting it does sometimes mean installing packages globally.
which is suboptimal.
i'd like an option which shows that indicator again.
The text was updated successfully, but these errors were encountered: