I know you can press Ctrl + R to find the Defition/Declaration of the function but how do you go back. Say you have a function and you want to know where it was used.
You can do normal search like name(
and then it shows up But.. if name is minified then searching A(
is less helpful and sometimes there is space A (
wont be matched.
Also i could write regex every time but that's tedious and unproductive.
Just like there is a way to find where was the function defined there should be a way to highlight and go through each invocation of that function.. so basically search functionality in revers.
I know you can press Ctrl + R to find the Defition/Declaration of the function but how do you go back. Say you have a function and you want to know where it was used.
You can do normal search like name(
and then it shows up But.. if name is minified then searching A(
is less helpful and sometimes there is space A (
wont be matched.
Also i could write regex every time but that's tedious and unproductive.
Just like there is a way to find where was the function defined there should be a way to highlight and go through each invocation of that function.. so basically search functionality in revers.
Share Improve this question edited May 8, 2015 at 17:48 Muhammad Umer asked May 8, 2015 at 17:18 Muhammad UmerMuhammad Umer 18.2k24 gold badges110 silver badges174 bronze badges 4- What sublime text version are you using 3? Because it works for me – Edwin Reynoso Commented May 9, 2015 at 0:33
- 1 i'm not sure what you mean by it works. what works? Ctrl+R..? Yea it works for me too when i have to find the definition of the function. I want to see where was a certain was called. – Muhammad Umer Commented May 9, 2015 at 1:24
- oh ok called I didn't know what you mean by used so I just read over it. that's interesting. Found this package but trying to figure out how to use it: packagecontrol.io/packages/WhoCalled%20Function%20Finder – Edwin Reynoso Commented May 9, 2015 at 4:23
- i use vscode, it es with this already built in and many other mon sense things. especially good autoplete, terminal, etc. plugins were fun, but didn't really enjoy treasure hunting – Muhammad Umer Commented May 10, 2017 at 21:55
2 Answers
Reset to default 1Simply use: CTRL + Shift + F
Also, third-party packages are available for Sublime. Try WhoCalled.
The answer is that Sublime Text cannot "go to usages". It is not an Intellisense-type IDE. It's not like working with NetBeans or Visual Studio, where it indexes all usages and function calls in the background and allows you to traverse them.
The best you can do is a simple text search (or regex), and limit the files searched by type or directory.
Or you can use a plugin from the Sublime Text munity - though I've found such plugins to be non-functional or buggy, or not quite what you asked for.
The best option seems like what you've indicated you are already using - use a different IDE.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742410914a4438791.html
评论列表(0条)