Disable wave underline in VS code


I am using Visual Studio Code (v1.11.2).
Is there any way to turn off wavy underline at all?

enter image description here

+10
source share
3 answers

In VSCode, these green curved lines indicate a warning in the code. VSCode performs background code analysis ( Linting ) to provide you feedback on syntax and compilation errors.

In your particular case, this is because the CSS ruleset is empty (declaration of selector, but no properties). You can see the warning message by hovering over the code with a green line below it.

VScode warning message

You can disable the waveline by disabling listing for CSS.

→ → , .json

"css.validate": false

, "css.lint.emptyRules": "" VSCode settings.json HTML JavaScript.

+6

, , , .


/ vscode, :

{
    "workbench.colorCustomizations": {
        "editorError.foreground":   "#00000000",
        "editorWarning.foreground": "#00000000",
        "editorInfo.foreground":    "#00000000"
    }
}

:

{
    "workbench.colorCustomizations": {
        "editorError.foreground":   "#ff000088",
        "editorWarning.foreground": "#ffe60033",
        "editorInfo.foreground":    "#00ff0088"
    }
}
+19

: VScode 1.35.1 " StandardJS - JavaScript ".

  1. javascript: , ..

  2. JavaScript?

. " JavaScript" JavaScript.

  1. Ctrl + Shift + P.

  2. : ": ".

  3. From " Workspace Settings " in the search box, enter " javascript ". In the left sidebar, find ExtensionsStandard JavaScript Style .

  4. Click "Standard JavaScript Style" and on the right, find " Standard: Enable ."

  5. Uncheck the box labeled "Standard inclusion."

0
source

Source: https://habr.com/ru/post/1016588/


All Articles