Relative Content

Tag Archive for c++intellisensevscode-remote

Unable to use goto in vscode and edit intellisense on remote server

I have an intel MAC with a headless Ubuntu22 VM running on it. I followed this guide: https://root.cern/install/build_from_source/ to install CERN’s ROOT source code on my virtual machine. I built successfully and a compile_commands.json was generated in the build directory. I have used VSCode’s remote extension to open the root_src directory and despite having Microsoft’s Intellisense, I am unable to use goto. I also tried the root_build directory which contains the compile_commands.json, but nothing changed. I have used goto successfully before with C and Rust projects. The solution seems to be to try and configure intellisense using c_cpp_properties.json, but I do not have one on my virtual machine, and using ctrl+shift+p and trying to edit C/C++ extension that way does not show any results. Any ideas?