Sublime Forum

C/c++: goto variable declaration

#1

I like the sublime text editor.
I am missing one essential feature for c language - goto variable/symbol declaration.

With ctrl+p I am able to jump to function, but it doesn’t work for variables. I’ve tried some packages(RTags, C improved, CTags,…), but it doesn’t work.

System: Windows 10

0 Likes

#2

The built-in goto symbol uses the syntax highlighting to determine where a symbol is declared/used. It does not provide enough information to reasonably implement a goto variable declaration generally. I’d suggest using something like LSP for this kind of feature.

0 Likes

#3

Shameless plug: do give EasyClangComplete a try. It is designed to do exactly what you need. Hope it works out for you.

0 Likes