The Outline view is empty; how can I display the symbols from the source code currently in the editor?
Hey, thanks for the screenshot. I can see a C file is open album.c, and Outline says “The active editor cannot provide outline information”.
This is expected, not a bug. Outline is filled by a language extension document symbol provider, and Cursor doesn’t include one for C/C++ by default.
One important note. Microsoft’s official C/C++ extension ms-vscode.cpptools doesn’t work in Cursor because Microsoft blocked it on VS Code forks. The working option is clangd llvm-vs-code-extensions.vscode-clangd.
What to do:
- Open Extensions
Cmd+Shift+XorCtrl+Shift+X, search for clangd, and install it. - Make sure the language mode in the bottom right is set to C, not Plain Text.
- clangd needs clang installed on your system and a
compile_commands.jsonorcompile_flags.txtin the project root. Without that, it can’t parse the code correctly, so symbols won’t show up. - After you open the project, give the server some time to index it.
Let me know if symbols still don’t appear after installing clangd.
