I'm using Visual Studio Code (v1.11.2).
Is there any way to disable wavy underline at all?

-
4I understand you. Wavy underlines can impede reading. However disabling them is not a good idea because they often give you important information. My suggestion is to change the color such that they blend somewhat with the background, for example by setting opacity, see stackoverflow.com/a/48610661/220060nalply– nalply2020-02-05 09:26:52 +00:00Commented Feb 5, 2020 at 9:26
-
2As there is no Q/A for the same thing in VS2019 (visual studio express), and as this comes to the top of that google query as well, goto to Tools > Options > Environment > Fonts-And-Colors, find "Warnings" and make them white. Ditto with "Syntax Error" (or make it pale red).www-0av-Com– www-0av-Com2020-05-20 08:15:54 +00:00Commented May 20, 2020 at 8:15
-
1The wavy underling thing should have a visibility toggle since that color thing likely fails when the scheme is changed from day time to night time. Considering all the other notifications the wavy underline is perhaps now overrated, especially when it is obscuring an entire section of code to inform you of an incorrect result type...redundantly to other notifications.George– George2023-08-14 04:56:52 +00:00Commented Aug 14, 2023 at 4:56
-
Related (if you want to debounce/delay instead of disable/toggle): In Visual Studio Code, is it possible to delay displaying inline errors when editing C# code, perhaps until I save the file?.starball– starball ♦2023-10-05 18:14:57 +00:00Commented Oct 5, 2023 at 18:14
-
I've written an answer to this here and am waiting for that Q&A to get merged into this one. It has important information about the VS Code 1.85+ update(s).starball– starball ♦2023-11-27 20:35:14 +00:00Commented Nov 27, 2023 at 20:35
11 Answers
To disable wavy/squiggly underline in vscode, go to settings.json (Ctrl + Shift + P to access the Command Palette and type “settings.json”) and set underline color to fully transparent:
{
"workbench.colorCustomizations": {
"editorError.foreground": "#00000000",
"editorWarning.foreground": "#00000000",
"editorInfo.foreground": "#00000000"
}
}
Though it may be better to make underline color just less vibrant:
{
"workbench.colorCustomizations": {
"editorError.foreground": "#ff000088",
"editorWarning.foreground": "#ffe60033",
"editorInfo.foreground": "#00ff0088"
}
}
5 Comments
In VSCode, those green squiggly lines mean a warning in your code. VSCode performs background code analysis(Linting) in order to provide you feedback about syntax and compilation errors.
In your particular case it is caused because of an empty CSS ruleset (declaring a selector but no properties). You can see the warning message by hovering mouse pointer over code with the green squiggly line underneath.
You can disable the wavyline by disabling linting for CSS.
Go to File --> Preferences --> Settings and then place following line in Settings.json
"css.validate": false
Alternatively you can also change default behavior of empty ruleset which is "css.lint.emptyRules": "warning" to ignore
There are also options to disable validating HTML and JavaScript code.
4 Comments
There is a new setting in Insiders v1.85 to hide the Problems squigglies in the editors and the editor tabs and the Explorer (see demo below).
The setting is:
Problems: Visibility
Controls whether the problems are visible throughout the editor and workbench.
Unfortunately, it is a setting only and not a command that can TOGGLE the problems visibility on and off quickly.
If you want to be able to quickly toggle it on and off by a keybinding, you will need an extension such as Toggle, written by a then-vscode team member - there may be other toggle settings extensions.
Here is a keybinding (in your keybindings.json) that will toggle the Problems: Visibility setting on and off:
{
"key": "alt+t", // whatever keybinding you want
"command": "toggle",
"when": "editorTextFocus",
"args": {
"id": "problems",
"value": [
{
"problems.visibility": false
},
{
"problems.visibility": true
}
]
}
}
Demo showing the setting working:
Demo of the Toggle keybinding:
When the Problems: Visibility setting is off, there will be a small notification in the Taskbar which when clicked will take you to the Setting UI with that setting:
The Toggle extension keybinding will also cause this taskBar notification to appear.
Previous answer:
A suggestion to upvote this more recent GH Issue: Provide the ability to disable warning/error squiggles. It is a backlog candidate but needs votes so that disabling the squigglies can be done across languages without resorting to the transparent trick.
Also definitely upvote Toggle problem visibility in Editor: same issue, already on the Backlog.
4 Comments
Backlog Candidate so it doesn't seem like it will be closed as a dup. (especially if it gets upvoted quickly). It also has very good comments.When using Python, the common advice is to use shift-ctrl/cmd-P, then set Python: Enable/Disable Linting > Disable and Python: Select Linter > Disable Linting. Neither of those was enough for me. Nor was I able to disable these by turning off the dozen or so linters listed under Settings > search > linting.
However, I was finally able to disable the wavy red underlines via Settings > Python: Language Server > None.
By the way, you can see where these underlines are coming from via View > Problems. In my case, they were coming from PyLance, and after I removed that extension, they came from Jedi instead. Even though I don't have the Jedi installed. It seems like Microsoft's own Python extension has Jedi somewhere inside and uses that unless you turn off the Language Server entirely.
1 Comment
VSC Version: 1.45.1
Solution: Disable "JavaScript ESLint Enable" for JavaScript files.
- Open Command Palette by 'Ctrl+Shift+P'.
- From Command Palette find and click: 'Preferences: Open Workspace Settings'.
- From 'Workspace Settings' into search field type 'javascript'. From left sidebar look for Extensions -> ESLint.
- Click 'ESLint' and from right look for 'ESLint: Enable'.
- Uncheck 'ESLint Enable'.
Comments
Scenario: VScode 1.35.1 with installed extension "StandardJS - JavaScript Standard Style".
The extension in javascript files: underlines some code, checks for indent spaces, etc.
How to stop javascript code style validation ?
Solution: Disable "JavaScript Standard Style" for JavaScript files.
Open Command Palette by 'Ctrl+Shift+P'.
From Command Palette find and click: 'Preferences: Open Workspace Settings'.
From 'Workspace Settings' into search field type 'javascript'. From left sidebar look for Extensions -> JavaScript Standard Style.
Click 'JavaScript Standard Style' and from right look for 'Standard: Enable'.
Uncheck 'Standard Enable'.
Comments
Right Click in your editor window and select for 'Command Pallet' option
OR press CTRL+SHIFT+P and search for the option 'Enable Error Squiggle' and just click on it. That's it! If you want to Disable Red Wavy underlines showed after syntax error, just Follow the above procedure and search for 'Disable Error Squiggle' and click on it.
1 Comment
Disable wavy underline in VS Code in C on mac
- Press command+shift+p (open command pallete)
- Then type Disable Error Squiggles
- And click on that Disable Error Squiggles
Your squiggles are no more
If you want to restart squiggles for some reason then in command pallete type Enable Error Squiggles
1 Comment
Squiggle in the name. Di I need an extension for your suggestion? Because it sounds awesome



