Fix missing C++ function outline in Cursor remote projects

In Cursor connected to a , installing the C++ may still not make the function outline appear for .cpp files. The C++ tool may need a compile_commands, which records how the project is built. This file is usually created by enabling the right option in CMake and building the project.

After that, the active C++ tool in Cursor needs to be pointed to that file through VS Code settings or files inside the .vscode folder. Another workflow is to use Neovim with Telescope for very fast movement between files and .

Key points

  • Cursor may not show a C++ function outline in remote .cpp files even after the is installed.
  • The project may need a compile_commands for the C++ tool to understand the code.
  • CMake can usually generate that file when the right option is enabled.
  • Cursor or its C++ tool must be configured to read the compile_commands.
  • Neovim with Telescope is mentioned as a faster alternative for code navigation.
Read original