Ctrl+Click on a function name in Atom editor and jump into it

As the other answer noted, alt-click over a method/function name can jump you directly to where it was originally defined. It works within the same file, but it doesn't seem to work across files.

The closest Atom editor package I've found for javascript which allows you to jump to function/method definitions across files is called TernJS.

Once installed, you can use ctrl-shift-r over the word (function/method, variable etc) to bring up a list of where that method/function is defined (includes line # & filepath). You can then click on the list item & it will jump you to the definition.

Here is a video I made containing an example of using this atom package. http://www.youtube.com/watch?v=cFAzqvYoHJs&t=11m58s


To answer your first question this 'behavior' is knows as 'go to definition', or 'jump to definition'.

To answer your second question some packages you could perhaps take a look at would be,

  • 'goto-definition'
  • 'code-peek'

I find these help a bit but still don't achieve the standards that I would fully like. I wanted something similar to the Intellij IDEA ctrl + click.

I find myself using the ctrl + shift + f to search the entire project for the related files of the thing I'm searching for. Then I find the particular file i'm looking for and shazam! I've got what I came to get. This particular method works best for me.

I know its not exactly what your looking for but this is the best thing I've found so far to achieve something similar to what we both seem to be looking for. Hope this helps a bit, happy coding...