-2

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?

3
  • 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. Commented Oct 7, 2021 at 14:44
  • Cmder and ConEmu are cmd emulators Commented 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. Commented Oct 11, 2021 at 12:21

1 Answer 1

0

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"
}
Sign up to request clarification or add additional context in comments.

4 Comments

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?
@Groks_45 Could you have a look at the update of this answer? thanks.
I have already tried to do this. With these settings, cmder is simply launched, but the code does not execute itself.
@Groks_45 Sorry for that, it does really not work, it seems like you only can take the method which mentioned in this answer.

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.