Sublime Forum

How to define References

#1

What do I need to do in a custom syntax to define a something as a reference so that it is shown in “Goto Reference…”?

Is there a certain scope that needs to be used, or is it customizable?
Is there documentation for it? I have not found any.

Thanks

0 Likes

#2

Yes, scopes see: https://www.sublimetext.com/docs/3/scope_naming.html

In particular the entity.name.* series.

0 Likes

#3

it is customizable, see Packages/Default/Indexed Reference List.tmPreferences as an example

1 Like

#4

Thanks,

Googling Indexed Reference List.tmPreferences led me to showInIndexedReferenceList which allowed me to find this:

0 Likes