Skip to content

How to jump to var and struct definitions using clangd via gd/gD in project? #836

Closed Answered by Jint-lzxy
longintlong asked this question in Q&A
Discussion options

You must be logged in to vote

您的意思是需要在我的project中添加json compile database吗?

ys. This is the only way clangd can understand complex code trees. VSCode doesn't require such configuration b/c it has already generated this file for you (usually via rizsotto/bear).

Make sure to read clangd's documentation before u start :)

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@longintlong
Comment options

@Jint-lzxy
Comment options

Comment options

You must be logged in to vote
6 replies
@longintlong
Comment options

@CharlesChiuGit
Comment options

@longintlong
Comment options

@Jint-lzxy
Comment options

Answer selected by Jint-lzxy
@longintlong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants