This package provides the following services:
Goto Definition
- Support for
JavaScript(ES6 && JSX)
,TypeScript
,CoffeeScript
,Python
,Ruby
,PHP
,Hack
,Perl
,KRL
,Erb
,Haml
,C/C++
,Puppet
,ASP
,Shell
- Works with Mac OSX, Linux and Windows
- Goto-Definition functionality, by default on
Alt+Cmd+Enter
/Ctrl+Alt+Enter
- Support hyperclick,
<cmd-click>
on a word to jump it's declaration
Installing
Install the package goto-definition
in Atom (Preferences->Install) or use Atom's package manager from a shell:
$ apm install goto-definition
Performance Mode
Performance mode is 10x faster then nomal model. if you want a better experience, please open the performance mode.
Steps:
- Install
ripgrep
, see https://github.com/BurntSushi/ripgrep#installation. Yeap, now we useripgrep
to search definitions, because of it's incredibly fast. - Turn
Settings -> Packages -> goto-definition -> Settings -> Performance Mode
on. - Enjoy it.
Now the performance model is still testing, welcome suggestions and feedback. If it goes well, we will open the performance mode by default in the next version.
Ignoring files
In performance mode, if you want ignore some files, you can create a file called .ignore
in the root of the project, it working like .gitignore
.
Notice
- In nomal model, if you want include VCS ignored paths, please turn
Settings -> Exclude VCS Ignored Paths
option off.