Can't disable error squiggles?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

My code is full or error squiggles, obviously since the intellisense for C is not working anymore and so all the functions are not recognized.
I read about clangd and its configuration, but I am using an old version of STM32CubeIde and there is no setting for the configuration of clangd.
So basically I moved from free VSCode to paid Cursor and my coding experience become worse.
Is there some way to disable squiggles for good?

Steps to Reproduce

Write some C code with functions in different files

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.50 (user setup)
VSCode Version: 1.105.1
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770
Date: 2025-12-06T23:39:52.834Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.22621

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

Cursor only uses the Anysphere C++ extension plus Clangd.

Issue: Clangd needs a compile_commands.json to work correctly. For STM32CubeIDE you have to generate it separately. That’s a known pain point for embedded projects.

Two options:

  1. Configure Clangd (recommended if you want IntelliSense):
  1. Disable squiggles entirely (quick fix):

Create a .clangd file in the project root:

Diagnostics:
  Suppress: '*''

Let me know which option you prefer.

Hi there,
After adding Diagnostics: Suppress: '*' to my .clangd configuration file, the top of my source file still displays the error: “Too many errors emitted, stopping now clang(fatal_too_many_errors)”. Additionally, the source file appears highlighted in red in the sidebar. I’ve tried everything to disable this but haven’t succeeded—could you please help resolve this issue?Thanks for your support.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.