vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

Add hotkey to open cppreference documentation

Open sr-tream opened this issue 1 year ago • 0 comments

This PR add hotkey Shift+f1 to open documentation on cppreference.com, like in CLion.

I added this feature in clangd extension, because VSCode do not provide API to get symbol info from LSP, and standalone doc extensions can't get symbol scope.

Example:

std::string foo;
auto bar = foo.da^ta();

For this code, standalone extensions opens doc for std::data. With this PR clangd open doc for std::string::data

sr-tream avatar May 17 '23 21:05 sr-tream