Can we make Emacs find the definition of a variable?

I am trying to learn how to use Emacs as my editor. I use it to edit Java. Now, let's say I have this code:

 
 
 private Sprite logo = null;//1                                                                                                


    private void createSprites(){//2
        logo = new ASprite();//3

    }//4

and now my cursor is in the word logo on line 3. How do I quickly get to the logo definition on line 1? All I know is Cs, Cr ... but then I have to print the logo, and not directly find the definition of the logo.

thank

Editorial: I just use semantic mode on Emacs 2.2: I can go on to define a tag (function, variable) using C-c , jThis will solve my problem :)

+5
source share
2 answers

, TAGS, , , , exuberant-ctags Etags, . TAGS, :

exuberant-ctags -e -R --language-force=java /opt/sun-jdk-1.5.0.08/share/

, "", M-. ( emacs TAGS. .

+3

, java- emacs , . Eclipse . : Eclipse Emacs, .

C-x C-c

0

All Articles