Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable VS Code Output Window (not Visual Studio)

Tags:

Simple Question:

How do I keep the output window from displaying in VS Code. I don't need it and it takes up a lot of screen real estate. I don't see any options in preferences and can't find anything to help with it.

Thanks!

like image 656
chrissavage Avatar asked Aug 01 '16 17:08

chrissavage


People also ask

How do I change the Output window in VS Code?

To open the Output window, on the menu bar, choose View > Output, or press Ctrl+Alt+O.

How do you display only output in VS Code?

Open your C code file in Text Editor, then use shortcut Ctrl+Alt+N , or press F1 and then select/type Run Code , or right click the Text Editor and then click Run Code in context menu, the code will be compiled and run, and the output will be shown in the Output Window.


2 Answers

If you want to disable the output window opening on its own:

You will have to open it from View > Output.

You can add the following line to your user settings:

"debug.internalConsoleOptions": "neverOpen" 
like image 133
Federico Avatar answered Oct 23 '22 02:10

Federico


Please note that the content in this answer applies only to those whom are using Visual Studio Code's Task feature. If you aren't using said feature, this answer will likely not be of any use to you.

When you configure your task, you are given the ability to configure whether or not the task's output is shown [in Visual Studio Code]. This is done with the "showOutput" property in your task configuration.

If you want to disable the task's output from being shown, you can set the "showOutput" property to never in your task's configuration. This will prevent anything from being written to the output window, thus preventing the window from being shown.

An example task configuration, with the showing of output disabled:

{     "version": "0.1.0",     "command": "echo",     "isShellCommand": true,     "args": ["Hello World"],     "showOutput": "never" } 
like image 25
Brynden Bielefeld Avatar answered Oct 23 '22 03:10

Brynden Bielefeld