I see “Goto Definition” in the popup menu but is there a “show all references” feature or does this require some kind of plugin?
Is there a way to see all references
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:
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?
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.
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?
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.