By default, vs code runs the python file in the 'python' terminal it creates, but I want this to run in external terminal of Cmder/ConEmu. How can I do it?
-
is cmder/ConEmu a separate package? Regadless, this is probably one to raise with the VS people (does it have a forum?) It's likely too specific a request here.2e0byo– 2e0byo2021-10-07 14:44:19 +00:00Commented Oct 7, 2021 at 14:44
-
Cmder and ConEmu are cmd emulatorsGroks_45– Groks_452021-10-07 15:48:59 +00:00Commented Oct 7, 2021 at 15:48
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.Community– Community Bot2021-10-11 12:21:47 +00:00Commented Oct 11, 2021 at 12:21
Add a comment
|
1 Answer
Yes, you can use the cmder shell in VSCode. You can refer to the official docs.
{
"terminal.integrated.profiles.windows": {
"cmder": {
"path": "C:\\WINDOWS\\System32\\cmd.exe", //point to the cmd.exe location
"args": ["/K", "C:\\cmder\\vendor\\bin\\vscode_init.cmd"] //point to vscode_init.cmd which under the installation location of the cmder
}
},
"terminal.integrated.defaultProfile.windows": "cmder"
}
4 Comments
Groks_45
Thanks, but this is not exactly what I wanted. I want the file to run in an external cmder window, not an integrated one. Can you help me with it?
Steven-MSFT
@Groks_45 Could you have a look at the update of this answer? thanks.
Groks_45
I have already tried to do this. With these settings, cmder is simply launched, but the code does not execute itself.
Steven-MSFT
@Groks_45 Sorry for that, it does really not work, it seems like you only can take the method which mentioned in this answer.