Sublime Forum

Indexing issues

#1

At work we have a fairly large project in multiple drs. I have noticed that at times i cannot right click and goto something because it is not indexed. Never can i go to an enumeration by clicking through an instance of an enumerated value

typedef enum
{
aaaa,
bbbb,
cccc,
} abc_t;

abc_t foo; if i click on abc_t it will take me to the enumeration but anywhere in the soruce file where i see foo or xyz = abc; i can not follow either one. Neither foo nor abc references will take me to the enumeration.

I also notice that huge chunks of the function names and #defiines are also not followable.

0 Likes

#2

i would suggest use LSP if you have clangd installed on your machine.

0 Likes

#3

not allowed at work
assuming you are talking about some language server protocol?

0 Likes

#4

supposing you nean you are not allowed to install clangd, then no, my suggestion wont work.

0 Likes

#5

Hi
This maybe a work around:
If you have a project set up, you can do a find in files.
There’s a plugin in show up this info nicely (BetterFindBuffer), you can then track want ever you wanna track using this.

(There are various options you can select for Where: which allow yo to control which files you want to look in…)

And you can swap between the code and your “list of occurences” using alt - (again off top of head) I can provide more info if this is helpful, am between tasks at mo, so gotta head off…

0 Likes