'Does sublime text 3 supports "find usages"("go to references" or "list references") or any plugins support this?

I want to konw if sublime text can do something like function lookup in eclipse or intellij idea.



Solution 1:[1]

The SublimeText package CTags gives you access to the feature of the Exuberant CTags tool (multi language index builder and browser). Seems to work for version 2 and 3.

Solution 2:[2]

In Sublime Text 3 there are the following built-in options:

  • Ctrl+Shift+R to go to a symbol (function, class etc.)
  • F12 to go to a definition of what's under the cursor
  • Shift+F12 to go to a reference of what's under the cursor

These are all available under the "Goto" menu which also show the keyboard shortcuts which may be different depending on your OS and settings.

Where there are multiple options for where to go, Sublime will present a filterable list of choices with the usual preview options as you move through the choices.

Solution 3:[3]

There is a plugin called Goto Usage https://packagecontrol.io/packages/Goto%20Usage

Solution 4:[4]

A "find" solution might be of help.

1) Make the word at the cursor as the active word

CMD + E

2a) Find next such word in the current file

SHIFT + CMD + G

2b) Highlight ALL such words in the current file

SHIFT + CMD + G

Replace CMD with CTRL in windows

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MonsieurDart
Solution 2
Solution 3 Chuan
Solution 4 Leo Bastin