79182577

Date: 2024-11-12 20:12:21
Score: 1
Natty:
Report link

The most reliable workaround I have found is using the CMAKE_EXPORT_COMPILE_COMMANDS option. With this (but only when CppTools extension is installed), one can type IntelliSense in the Command Pallete, which offers the option to choose the data source. And then one can select the relevant compile_commands.json file. Once this is set, the navigation through Ctrl-Click seems to work correctly within the source which belong to the selected build target.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: PasterOfMuppets