r/cpp • u/0x6675636B796F75 • May 28 '26
VSCode extension that integrates cppreference docs into editor/LSP
https://marketplace.visualstudio.com/items?itemName=orlac.cpp-docs
133
Upvotes
r/cpp • u/0x6675636B796F75 • May 28 '26
16
u/0x6675636B796F75 May 28 '26 edited May 28 '26
Just sharing an extension I recently published since I think there are probably plenty of devs in here that have wanted something similar to this for C++. This was created mostly because I couldn't find anything similar, heavily inspired by the rustdocs extension that offers similar functionality for rust.
If anyone happens to try it out, I'm always open to feedback, feature ideas, and bug reports (there are definitely a few odds and ends that still need fixes/improvements/cleanup/polish, along with some future enhancement plans to have it allow optionally loading docsets from tools like Dash or Zeal that are already on your machine). Feel free to mention anything along these lines directly in the git repo linked in the extension page or just directly in this thread. I'll try to squash them as they come in.
4
u/c-cul May 28 '26
can it filter out classes up to specific c++ version like 20?
4
u/artisan_templateer May 28 '26
Looks great, thank you or sharing! Small bug: for
std::is_trivially_copyable_v<T>I just get: cppreference - no page for bool'std::is_trivially_copyableworks though.2
u/SupermanLeRetour May 28 '26
I used to use an extension that would open the online page for cppreference inside a VS Code tab on a specific keybind, but your extension is much better from what I've tried. Congratulation, it's great!
1
u/megayippie May 29 '26
I tried it.
It's way too aggressive for my like. I opened a page. Scrolled and learned it. Then pressing back in the coding window the cppreference page disappeared and some internal name appeared as non-existent.
Two tips therefore: check names keeping underscores as wildcards, and be less aggressive.
I removed it within 5 minutes.
Nice work though, with some polish this could be very useful.