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.
-
Does this answer your question? VSCode Change Default TerminalPowerShellGuy– PowerShellGuy2021-11-29 17:22:38 +00:00Commented 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 languagesKumara– Kumara2021-12-01 17:20:05 +00:00Commented Dec 1, 2021 at 17:20
Add a comment
|
2 Answers
Press Ctrl+Shift+P to bring up the command palette and run the Terminal: Select Default Profile command:
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:
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.
7 Comments
Kumara
Sorry, I tried this method but that didn't show the method I am asking.
carlfriedrich
Do you mean it does not display Python as an option? Do you have Python installed?
Kumara
Yes it doesn't display python as an option but I have installed python.
carlfriedrich
Alright, I extended my answer with information on how to add a Python terminal profile.
Kumara
Thank you for your answer it solved my problem :)
|


