dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.16k stars 4.71k forks source link

Improve Find References/Go To Definition experience in VS Code for VM code #13486

Open danmoseley opened 5 years ago

danmoseley commented 5 years ago

I added a .vscode/c_cpp_properties.json in https://github.com/dotnet/coreclr/pull/24540 to get better Go To Definition in VS Code in the VM code.

Unfortunately this required pasting in lots of include paths and defines that would be better to be discovered from the build process.

It looks like VS Code support CMAKE "compile commands" may allow us to achieve that: https://cmake.org/cmake/help/v3.5/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html

BTW, The C++ Find All References shipped last month (https://github.com/microsoft/vscode-cpptools/issues/15) which would make good VS Code integration more valuable than before.

jashook commented 5 years ago

Hoping this should be improved/addressed with the cmake work @jkoritzinsky is doing.

danmoseley commented 4 years ago

Marking as future.