Need help with clangd vscode setup

Revision en2, by kunzaZa183, 2024-09-12 18:25:51

Hi everyone,

I'm a big fan of Visual Studio Code. However, I'm not a big fan of the C/C++ intellisense provided by Microsoft. Although I am aware it works on other machines; on my machine, it is a slow and buggy extension that seems to hallucinate more often than not, which led me to switch to clangd as my primary C/C++ autocomplete extension. I've been using clangd for quite a while and I like it. One annoying thing I want to fix though, is the lack of inclusion of headers that are provided by GCC.

Headers like bits/stdc++.h, ext/pb_ds aren't supported by clang, but I would like to know how I could be able to use these headers with clangd on vscode. I remember that during IOI2024, the clangd extension provided by the host allowed me to use these headers, so I know that it is possible.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English kunzaZa183 2024-09-12 18:25:51 0 (published)
en1 English kunzaZa183 2024-09-12 18:25:28 836 Initial revision (saved to drafts)