Ctrl + Click on the function name in the Atom editor and go to it.

I tried to come up with a better way to make amends for this question, but, unfortunately, I have no idea how to explain it. Also, I did not find this when the stack overflowed (for the same reason that was mentioned above).

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

Question 1: Does anyone know the name of this behavior? I mean, maybe this is called a jump function or something like that.

I also looked for such a plugin in the Atom editor. Because I tried to use it many times (bad habits) and did not work.

Question 2: The name of the plugin for this in Atom?

I don't know if this helps, but I'm currently coding in JavaScript in an Atom editor.

+5
source share
3 answers

As another answer noted, Alt-click above the method / function name can go directly to where it was originally defined. It works in a single file, but does not seem to work with files.

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

After installation, you can use ctrl-shift-r above the word (function / method, variable, etc.) to display a list of where this method / function is defined (including the line # and the file path). Then you can click on the list item and go 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

+2
source

Currently, this behavior is blocked by the function of multiple cursors . Closest you can get "ctrl-alt-shift-d" + atom-ternjs

+1
source

try atom / move

Atom Moving Link

This will help you deal with this.

The only thing it is by default is f2 instead of cltr + click

But this can also be changed in the package settings in the .atom file

0
source

Source: https://habr.com/ru/post/1244451/


All Articles