Search code examples
pythonvisual-studio-codeconemucmder

Run python files in Cmder/ConEmu vs code


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?


Solution

  • 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"
    }