VS Code doesn’t have one master switch for error squiggles. The setting you change depends on the language you’re writing in. For C/C++ it’s C_Cpp.errorSquiggles, set to enabled. Python goes through python.analysis.typeCheckingMode, and JavaScript and TypeScript each have their own validate setting.
Python catches people out the most. Pylance ships with that setting at off, so a fresh Python setup shows only unresolved import and variable squiggles until the mode moves to basic or higher (Pylance documentation, Microsoft, as of November 2026).
Which setting turns on error squiggles for each language?

The wavy underline comes from whichever language server or linter is checking the file. VS Code just draws what it’s told to draw. That’s why the switch lives somewhere different for every language.
| Language | Diagnostic source | Setting | Values |
|---|---|---|---|
| C/C++ | C/C++ extension | C_Cpp.errorSquiggles | enabled, disabled, enabledIfIncludesResolve |
| Python | Pylance | python.analysis.typeCheckingMode | off (default), basic, standard, strict |
| JavaScript | TypeScript language service | javascript.validate.enable | true or false |
| TypeScript | TypeScript language service | typescript.validate.enable | true or false |
| Java, C#, Rust | The language’s own extension | Extension-specific | Varies by extension |
Values reflect each tool’s official documentation as of November 2026.
Alphr’s guide points out that squiggles are on by default in VS Code. So when they’re missing, the usual suspect is a disabled setting or a language extension that was never installed.
JavaScript and TypeScript are covered out of the box. For everything else, the extensions you install in VSCode decide which language server runs, and the language server is the thing reporting problems back to the editor.
Be careful with older tutorials. In April 2017 the C/C++ extension shipped squiggles as an experimental feature, turned on by default only for VSCode Insiders users (Microsoft C++ Team Blog). Guides from that period tell you to opt in, which is where a lot of the confusion comes from.
How to enable error squiggles for C and C++
You won’t find the setting until Microsoft’s C/C++ extension is installed and active. Search Settings before that and you get nothing, which looks like a bug but isn’t.
- Open the Extensions view with Ctrl+Shift+X and confirm the C/C++ extension from Microsoft is installed and enabled.
- Open Settings with Ctrl+, (Cmd+, on macOS).
- Type “error squiggles” in the search box.
- Set C/C++: Error Squiggles to enabled.
- Type a deliberate error, such as a missing semicolon, in a .cpp file. A red wavy underline should appear, and a restart of VS Code is the first thing to try if it does not.
If you prefer editing JSON, it’s one line.
"C_Cpp.errorSquiggles": "enabled"
Put it inside the outer braces of your settings file. Never opened the raw file? This walkthrough on opening the settings.json file shows each route.
Choosing between enabled and enabledIfIncludesResolve
According to the VS Code C++ FAQ, the extension stops showing linting information for the body of a source file when it can’t resolve an include. Changing C_Cpp.errorSquiggles makes it show that information anyway.
With enabled, every error shows up, including inside files with unresolved includes. The downside is real, though. One missing include path can bury the whole file in false errors.
enabledIfIncludesResolve stays quiet while includes are broken, so a misconfigured project doesn’t look like a wall of red. You pay for that calm with hidden mistakes in the file body until the includes resolve.
I’d stop worrying about which value to pick and fix the include paths first. The same FAQ names missing include paths and defines as the most common reason for red squiggles under Standard Library types. Its easiest fix is setting compilerPath in c_cpp_properties.json.
User settings versus workspace settings
Per the VS Code documentation, workspace settings override user settings. They sit in a .vscode folder at the project root, and they only apply inside that project. User settings follow you everywhere else.
So if squiggles work in one project and disappear in another, open the broken project’s .vscode/settings.json before anything else. Some clangd setups, like one shared on GitHub, set "C_Cpp.errorSquiggles": "Disabled" there on purpose so two extensions don’t draw squiggles over the same code. Easy to forget it’s there.
How to enable error squiggles for Python, JavaScript and other languages
Python squiggles come from Pylance and depend on python.analysis.typeCheckingMode. JavaScript and TypeScript get theirs from the built-in TypeScript language service.
Python and Pylance
The Pylance documentation on GitHub lists python.analysis.typeCheckingMode as off by default. Off doesn’t mean silent. Unresolved imports and variables still get squiggles.
The modes stack on each other. Off disables most type checking. Basic adds the basic type checking rules, standard adds its own set on top of basic, and strict layers the strict rules over all of that.
To actually see type errors, open Settings, search “Type Checking Mode”, and pick basic or strict. That’s the route Pydantic’s VS Code guide describes. If the setting seems to be ignored, look for a pyrightconfig.json or pyproject.toml in the project, since either one can override the editor value.
None of this works without the Python extension installed. Getting Python working in VSCode is covered separately.
One more setting worth knowing. python.analysis.diagnosticMode defaults to openFilesOnly, which limits full diagnostics to files you have open. Switch it to workspace for project-wide squiggles, but expect more analysis work in large workspaces.
JavaScript and TypeScript
Nothing extra to install here.
VS Code’s JavaScript documentation says it runs the TypeScript language service for both languages. These are the controls that change what you see:
typescript.validate.enableturns TypeScript validation on or offjavascript.validate.enabledoes the same for JavaScript files- Adding
// @ts-checkat the top of a JavaScript file brings in type errors for that one file "js/ts.implicitProjectConfig.checkJs": truedoes it for every JavaScript file outside a jsconfig.json or tsconfig.json project
If your project does have a jsconfig.json or tsconfig.json, use "checkJs": true in the compiler options instead.
ESLint sits on top of all this with rule-based linting checks. Those catch style problems and likely bugs, not type errors.
Missing ESLint squiggles in TypeScript files? Check eslint.validate. The ESLint extension’s release notes say that once it’s set, only the languages in that list get validated.
Java, C# and Rust
No shared toggle here. Each extension owns its diagnostics, and a Microsoft Q&A thread from April 2024 reports that C# has no counterpart to the C/C++ squiggle setting.
Start by confirming the language extension is installed and enabled for the workspace. Then go through the extension’s own settings rather than the general editor settings.
A Microsoft Q&A answer adds that squiggles stop when the language server is not active for the workspace, when it fails to start, or when validation is switched off.
How to show or hide error squiggles across all languages
The only built-in switch that covers every language is problems.visibility. It’s on by default, and the official release notes say it arrived in version 1.85 (November 2023).
Turn it off and problem decorations vanish from the editor and the rest of the workbench. The Problems view still lists every issue.
Underneath it there’s editor.renderValidationDecorations, which defaults to editable according to the Monaco Editor API documentation. And if you only want to silence one language, go back to the C/C++, Pylance and validate settings from the previous section.
Hiding everything is a blunt tool. A Rust user on the Rust forum switched off Problems: Visibility to get rid of a duplicate marker and lost every other error notification in the workspace along with it.
The Invisible Squiggles extension’s README adds that the built-in setting always shows a warning in the status bar while problems are hidden.
Then there’s problems.decorations.enabled, and sources don’t agree on what it does. Some tutorials claim it controls whether warnings and info appear as squiggles. A Stack Overflow answer says it only toggles problem decorations in the Explorer view.
Toggle it once and watch the editor to find out for your VS Code version. Until you’ve done that, leave it out of any squiggle fix.
Every switch above also depends on scope. The VSCode settings overview explains user, workspace and language-specific scopes, which decides where a hide-everything switch should live.
Why are error squiggles not showing in VSCode?
Usually it’s one of the causes in the table below. Go through them top to bottom before editing any setting, because most of them have nothing to do with the squiggle settings at all.
| Cause | What you see | Fix |
|---|---|---|
| Missing or disabled extension | No underlines, no language setting | Install and enable the extension |
| Restricted Mode | Extension disabled or limited | Trust the folder |
| Wrong language mode | File analyzed as another language | Switch mode in the Status Bar |
| Unresolved #include (C/C++) | Quiet file body | Resolve the include |
| Two C++ extensions | Duplicate or conflicting underlines | Keep one provider |
A file in the wrong language mode never reaches the right language server. The Language Mode control sits in the Status Bar at the bottom right of the window, and Ctrl+K M opens the same picker.
On includes, a cpptools maintainer describes a failed include as a sign of an incomplete configuration and says the team does not want to drown you with errors. Resolve the include and the squiggles come back.
Restricted Mode and untrusted folders
Opening a folder in Restricted Mode can switch off the exact extension that draws your squiggles.
Extensions that haven’t opted into Workspace Trust are disabled by default, and the rest run with reduced features. VS Code also disables a set of workspace settings. Some language features may be off too. Text editing always works, but the documentation doesn’t say which language features get cut, which is a bit annoying when you’re trying to debug this.
To get out of it, click the Restricted Mode badge in the Status Bar or run Workspaces: Manage Workspace Trust from the Command Palette. Trusting a folder also trusts its subfolders.
Only trust code you know. VS Code’s own advice is to leave a folder in Restricted Mode when in doubt.
Two C++ extensions producing diagnostics
Duplicate or conflicting underlines in C++ files usually mean the Microsoft C/C++ extension and clangd are both analyzing the same file.
The clangd extension warns that Microsoft’s IntelliSense features conflict with its diagnostics, as a forum post quoting the message shows.
STMicroelectronics hit the same collision. Its clangd-based STM32Cube extension for VS Code prompts users to disable Microsoft IntelliSense, according to ST Community threads.
If you want to keep Microsoft’s squiggles, disable the clangd extension for the workspace and you’re done. Going the clangd route takes a little more thought. The clangd team advised disabling the Microsoft extension, or setting C_Cpp.intelliSenseEngine to Disabled to remove most of the overlap (clangd developer list, November 2019).
Either way you lose features the other tool provides. Pick one provider anyway. Two sets of underlines is worse.
What do the squiggle colors mean, and how to change them
Each severity gets its own theme color key. You can recolor warnings without touching errors, or the other way around.
| Key | What it colors |
|---|---|
| editorError.foreground | Error squiggles |
| editorWarning.foreground | Warning squiggles |
| editorInfo.foreground | Info squiggles |
| editorHint.foreground | Hints in the editor |
| editorError.border | Border of error boxes |
Key descriptions follow the VS Code theme color reference. Your theme sets the default shades, so the exact red or yellow depends on which one you use.
Overrides go in the workbench.colorCustomizations user setting.
"workbench.colorCustomizations": { "editorError.foreground": "#ffef0f", "editorWarning.foreground": "#3777ff" }
Those two hex values come straight from an example in the VS Code accessibility documentation. They’re samples, not defaults.
If you’d rather highlight the whole token, set editorError.background and keep the color semi-transparent so it doesn’t hide underlying decorations. The error marker in the overview ruler is a separate key, editorOverviewRuler.errorForeground.
Pick colors for contrast against your theme background. Pretty doesn’t help if you can’t see it.
How to read and act on a squiggle
Hover the underline to read the message. Ctrl+Shift+M opens the full list, and Quick Fix (Ctrl+.) applies a fix when one is offered. Shortcuts here are for Windows and Linux, and macOS swaps Ctrl for Cmd.
- Ctrl+K Ctrl+I shows the hover without touching the mouse
- Clicking the error and warning summary in the Status Bar opens the Problems panel, same as Ctrl+Shift+M
- Code Actions show up as a lightbulb in the left margin, and Ctrl+. triggers them
- F8 and Alt+F8 jump to the next problem, with different scope (more on that below)
The VS Code tips and tricks page says F8 and Shift+F8 cycle through errors. In the default keybindings, F8 moves to the next problem across your open files, while Alt+F8 loops through the current file only. Both open an inline zone with the problem and any Code Actions.
Keep these keys nearby with a VS Code workflow cheat sheet.
The Problems panel itself has a few controls worth knowing. You can filter by type (info, errors, warnings) or by matching text. Version 1.41 (November 2019) added a filter for the active file, and version 1.68 (May 2022) added a table view, with problems.defaultViewMode setting the default.
Error Squiggles in VSCode FAQ
How do I turn off error squiggles for one language only?
Use that language’s own setting instead of the global switch. Set C_Cpp.errorSquiggles to disabled for C/C++, or typescript.validate.enable to false for TypeScript.
The problems.visibility switch hides every language at once, which is usually more than you want.
Can I show error messages inline next to the code?
Yes. The Error Lens extension puts the diagnostic message and a line highlight right beside the code, on top of the built-in underline.
Install it from the Extensions view and leave the squiggles on.
How do I find out which include is blocking squiggles in a C++ file?
Open the Problems panel with Ctrl+Shift+M. According to the VS Code C++ FAQ, the C/C++ extension lists there which files it was unable to locate.
Then run C/C++: Edit Configurations (UI) to correct the include paths.
Do error squiggles work in virtual workspaces such as GitHub Repositories?
Partly. The VS Code extension guide says the built-in language extensions, TypeScript included, are limited to single-file language support on virtual resources.
Errors that depend on other files are not guaranteed, so clone the repository when you need full squiggles.
Keeping Error Squiggles Useful Once They Are On
Too many squiggles is its own problem. The trick is to cut noise where it starts, one language server at a time, and save the global hide switch for last.
Start with the configuration behind the false errors, since that’s the only step that removes noise without hiding a real error. If it’s still too loud after that, turn down one language’s rule level. Hiding decorations globally comes after both, and each step down that list trades away some coverage for quiet.
The sequence reflects VS Code documentation as of November 2026. A change to problems.visibility or to Pylance’s default type checking mode would reorder the steps.
- How to Choose a Digital Transformation Consulting Partner - November 30, 2026
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026
- How to Evaluate an AI Code Reviewer on Your Own Pull Requests - November 29, 2026



