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

Viewed 18062

I've been trying to think of a better way to title this question, but unfortunately I have no idea how to explain it. Also I haven't found this on stack overflow (for the same reason stated above).

In Eclipse, I used to Ctrl+Click in the name of a method call (in java). And my cursor would jump in to the definition of my method function.

Question 1: Does anyone know the name of this behavior? I mean, maybe it's called function jumping or something like that.

Also I was searching for a plugin like this in Atom editor. Because I've tried to use this a lot of times (bad habits) and didn't work.

Question 2: Name of the plugin to do this in Atom?

Don't know if it helps, but I'm coding in JavaScript at the moment in Atom editor.

6 Answers

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,

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...

Currently this behavior is blocked by multiple cursors feature. The closest you can get is "ctrl-alt-shift-d" + atom-ternjs

I don't think I have a package for that.

Simply ctrl-D goes to definition for me.

Tried by luck after reading here other methods.

Cheers.

In Atom (1.57.0 version, os Ubuntu 18.04) command ctrl+shift+f is doing project-find:show. (try cmd+shift+f if on mac and the above does not work)

First select a function name in a file within a project, click ctrl+shift+f, and a list of files from your project folder, that also have this function (either defined, or used) should appear. Click on any of these files, to come back to the list use ctrl+tab. I can see in key-bindings that this command project-find:show, is bound to ctrl+shift+f, and I have used it, but I am not sure if this is from one of the packages, or not. (sorry new to atom)

Related