How to configure the Visual Studio Code to open the console in a new window?

8

In earlier versions the Visual Studio Code Console opened in a window outside Visual Studio Code , but in the new versions this Console screen was opened in of the Visual Studio Code itself, which greatly disrupts debugging because the console window takes up considerable space, which reduces the size of other windows. We can see this in the image below:

For example, with the console window open inside the Visual Studio Code , the source code files windows get very narrow, and to see the whole code I have to close the screen console.

Before, however, it was possible to keep the two windows open without interfering in the other's area. This was because the Visual Studio Code console was opened in a window outside the application, so I could see both the source code file and the console screen simultaneously, without the console screen would be disrupting the source code area.

My question is whether there is a setting to have the Visual Studio Code re-open the console again in an external window and how to set it up for it.

    
asked by anonymous 21.12.2015 / 11:55

1 answer

0

I finally figured out how to open the console in a window outside Visual Studio Code.

According to Visual Studio Code debugging documentation , simply add, in the file launch.json , the "externalConsole": true entry to the JSON of the runner configuration you want to run with the console open in the external window, as shown in the image below:

Apparently,thevalueofthisentryisfalsebydefault,soyouneedtochangeittotrueintherunnersettingsyouwanttorunwiththeconsoleintheexternalwindow.

Forexample,myconfigurationisasfollows:

"configurations": [
    {
        ...
        "externalConsole": true,
        ...
    },
    
16.04.2016 / 14:07