Sublime Forum

Can "goto_definition" be extended?

#1

“goto_definition” is a useful function. But in some cases, it returns something we might not want, such as definitions in jquery.min.js, foo.css, bar.lib.class.php, etc.

I tried to find some APIs that relate to this function but none were available.

Are there some ideas?

Can it be extended? So that we can add filters or rules, etc.

0 Likes

#2

There is a setting called index_exclude_patterns that you can set to ignore certain files or folders. Maybe something like:

"index_exclude_patterns": ["*.min.*", "*.css"]

etc.

0 Likes

#3

Yeah that’s it! Thank you very much!
And sorry for my careless…

0 Likes