7

I am using Visual Studio Code on my Windows 10 PC. I want to change my default terminal from 'Windows PowerShell' to 'Python' (on Windows). Someone help me solve this issue.

2
  • Does this answer your question? VSCode Change Default Terminal Commented Nov 29, 2021 at 17:22
  • No I want python as my default terminal this suggestion gives a common answer but not for python. If I can set python as my default terminal, please give that explanation in detail. Because I am a new learner of programming languages Commented Dec 1, 2021 at 17:20

2 Answers 2

8

Press Ctrl+Shift+P to bring up the command palette and run the Terminal: Select Default Profile command:

Run command

Select Default Profile

If Python does not appear here, add a profile for it manually in your JSON configuration. Press Ctrl+Shift+P and run the Preferences: Open User Settings (JSON) command:

enter image description here

Add the following lines in your JSON config file and save it:

"terminal.integrated.profiles.windows": {
    "Python": {
        "path": "python",
        "args": []
    }
},

Afterwards you should be able to select Python as your default terminal profile.

Sign up to request clarification or add additional context in comments.

7 Comments

Sorry, I tried this method but that didn't show the method I am asking.
Do you mean it does not display Python as an option? Do you have Python installed?
Yes it doesn't display python as an option but I have installed python.
Alright, I extended my answer with information on how to add a Python terminal profile.
Thank you for your answer it solved my problem :)
|
0

Press Ctrl+Shift+P to bring up the command palette, the keyword is "Python: Select Interpreter".

You can see a list of Python Virtual Environments to choose from.

After you have chosen one, the selected Python Interpreter will take effect immediately.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.