Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: I want to remove annoying info message bar

VSCode message bar

Is there any way to completely remove this message popup or move it to somewhere?

I already know why this message comes, but I do not want to disturb my activity with annoying info popup.

When it pops up it hides the document tab, so I have to close it every single time. (I do not want to know how to fix this particular error message, this screenshot is just an example.)

It's very annoying and I've searched around for a way to remove it, but the answers keep saying how to fix that particular error and not how to hide the popup itself.

like image 872
Miu Yarai Avatar asked Jan 03 '17 06:01

Miu Yarai


People also ask

How do I get rid of Vscode top bar?

Go to menu File → Preferences → Settings → Window → Title Bar Style and set it to custom. Now there won't be any title bar.

How do I disable Vscode tooltips?

Type “editor. hover. enable” into the search field then check/uncheck the checkbox associated with “Controls whether the hover is shown.” to enable/disable the suggestion tooltip on hover.

How do I turn off warnings in Vscode?

To disable TypeScript warnings in VS Code, we can set a few options in our VS Code settings to disable them. { //... "typescript. validate. enable": false, "javascript.


2 Answers

In the screenshot it shows trying to validate PHP.

In a VS Code window select File > Preferences > User Settings

An editor will open on the left called Default Settings and on the right with a file called settings.json

In the right side editor you can add settings that will override those found in the left-hand-side one.

Between the braces type:

// Whether php validation is enabled or not.
    "php.validate.enable": false,

Then save the document.

VS Code will no longer attempt to validate PHP files.

You can override any of the defaults using this method.

You can use the same technique for each Workspace (or project folder) using File > Preferences > Workspace Settings

You can't disable the alert bar in general as VS Code needs to tell you things and doesn't (thankfully) use modal dialogs to communicate.

like image 26
Jon Avatar answered Oct 16 '22 02:10

Jon


Press ESC.

I agree that this is really annoying. VS Code is all about high-speed workflow and not having to interact with anything except your code via keyboard. Everything has key chords, e.g. CTRL-P and CTRL-SHIFT-P. So having to stop what I'm doing, go to the mouse, and dismiss this popup, whenever a background task feels like completing (and not even really then, because the popup actually appears some short time later) just so I can get visual confirmation of which file I'm currently coding in, to refocus my work after being distracted by the same popup, is really awkward. They are in a stupid location and don't even fade away after time like well-behaved toasts.

That said, I think that's really two parts; the distraction, and relatively high workflow cost to dismiss.

It helped me a lot to learn that it can be dismissed quickly and easily with the ESC key. The other half the problem I still haven't solved, but hope that helps you.

like image 162
shannon Avatar answered Oct 16 '22 01:10

shannon