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.
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.
Press ctrl-\ or cmd-\ to open/close the tree view and alt-\ or ctrl-0 to focus it.
Press CTRL-SHIFT-H in the editor to open the preview pane.
We are archiving Atom and all projects under the Atom organization for an official sunset on December 15, 2022.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With