Sublime Forum

Is there a way to see all references

#1

I see “Goto Definition” in the popup menu but is there a “show all references” feature or does this require some kind of plugin?

0 Likes

#2

It depends on “references” being declared for a syntax definition. If so, they are displayed below definitions in Goto Definition popup and can be navigated to via shift+F12.

Example:

0 Likes

#3

that works tyty … but … : )

… would it be pissible to add this as a “Show References” menu item so I dont have to reach for the keyboard?

0 Likes

#4

It is available vie Main Menu > Goto > Goto Reference…

To add a context menu item, a Context.sublime-menu is required. I use some default overrides to ensure they appear at the top.

0 Likes

#5

i see that but it should be available in the right click menu along with “goto definition”.

I dont have a “sublime-commands” sub directory under my ~ and I would seriously object to cluttering my home dir up with one, i dont do ST development, i cant wrap my head around python at all even after 2 months of trying. I code Forth compilers from scratch, Assemblers, Debuggers (simulators etc) and high level code confuses me : )

where can i put a Context.sublime-menu file where ST4 will just fiind it? or do i already have one buried somewhere?

0 Likes

#6

sublime-commands is just a repo name, not the local package name. It is actually designed to override ST’s Default package to tweak some of its defaults to my personal taste.

You can basically place a Context.sublime-menu everywhere, but preferrably in Packages/User with only the additions you want. Note there’s no way to control added items’ position in detail. Only name, id and separator id can be used for that purpose.

0 Likes

#7

ty for the help : )

0 Likes