Make Doxygen autodocumentation work properly in Cursor

When using clangd for C++ (IntelliSense disabled), C_Cpp.GenerateDoxygenComment fails with “IntelliSense is disabled…” Doxdocgen’s completion-based flow is broken by Cursor’s inline suggestions. Please either make the Doxygen command work with clangd, add Doxygen generation to clangd, or fix suggestion behavior so Doxdocgen’s /// + Enter trigger works.

Hi Andrew,

Thank you for the detailed report. There are two separate issues at play here, so let me address each one.

  1. C_Cpp.GenerateDoxygenComment failing: Cursor ships its own C/C++ extension that uses clangd for language intelligence rather than Microsoft’s IntelliSense engine. The GenerateDoxygenComment command specifically requires IntelliSense to be active, which is why it fails with the “IntelliSense is disabled” error. This is an architectural difference from VS Code – clangd doesn’t provide this particular command.
  2. Doxdocgen’s /// + Enter trigger being intercepted: Cursor’s inline suggestions (Cursor Tab) can take priority over extension-provided completion items, which is likely what’s breaking Doxdocgen’s trigger flow.

A few workarounds:

  1. Bind the Doxdocgen command directly: Doxdocgen provides a command called Generate Doxygen Comment (doxdocgen.generateComment) that you can bind to a keyboard shortcut (e.g., Cmd+Shift+D). This bypasses the /// + Enter trigger entirely, so it works regardless of Cursor Tab being active. Go to Keyboard Shortcuts (Cmd+K Cmd+S) and search for “Generate Doxygen Comment” to set your preferred shortcut.

  2. Temporarily snooze Cursor Tab: Click the Cursor Tab indicator in the bottom-right status bar and choose Snooze to temporarily disable inline suggestions while you generate Doxygen stubs. You can also use Disable for specific extensions to turn off Tab for .cpp/.h files if you prefer. More details: Tab completion

  3. Use Cursor’s AI for Doxygen generation: Select a function, press Cmd+K (or Ctrl+K), and ask it to “add a Doxygen comment for this function.” This works well for on-demand doc generation and respects the function signature as parsed by clangd.

I’ve shared this feedback with the team – the interaction between Cursor Tab and extension-provided completions is valid, and I’ll make sure it gets visibility.