Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View structure of file in Atom

I am used to IDEs like Eclipse and Intellij and am trying to completely switch over to Atom. Few of the things I have been unable to figure out (or found packages for): 1. How to view the structure of the file in Atom. For e.g. a shortcut that would show me the classes/methods/variables in a file so that I can jump from one to the other quickly. 2. How to go to the declaration of a method or class? I see "Go to declaration" as one of the options when I right click but it does not seem to do anything -- at least for php files. Am I missing something there?

Thanks.

like image 378
panache Avatar asked Aug 17 '16 17:08

panache


People also ask

How do I view files in Atom?

There are several ways to open a file in Atom. You can do it by choosing File > Open from the menu bar or by pressing Ctrl+O to choose a file from the standard dialog.

How do I enable tree view in Atom?

Press ctrl-\ or cmd-\ to open/close the tree view and alt-\ or ctrl-0 to focus it.

How do I Preview code in Atom?

Press CTRL-SHIFT-H in the editor to open the preview pane.

Is Atom being discontinued?

We are archiving Atom and all projects under the Atom organization for an official sunset on December 15, 2022.


1 Answers

For 1.) How to view the structure of the file in Atom. For e.g. a shortcut that would show me the classes/methods/variables in a file so that I can jump from one to the other quickly you could use symbols-tree-view which I just discovered because I was searching for the same functionality. You can browse for classes, functions, vars, ... and click on them to get there.

Your question 2.) How to go to the declaration of a method or class? I see "Go to declaration" as one of the options when I right click but it does not seem to do anything -- at least for php files. Am I missing something there? should be answered, too by this, or not?

like image 167
Cord Kaldemeyer Avatar answered Oct 22 '22 18:10

Cord Kaldemeyer