Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open atom using a "atom ." command in terminal?

I want to open the project using atom . command in command prompt but it says atom is not recognized as an internal or external command

How can I fix the problem?

Screenshot

like image 436
Van Adrian Cabrera Avatar asked May 19 '16 02:05

Van Adrian Cabrera


People also ask

How do I open an Atom in terminal?

To enable opening Atom from the command-line, you will need to install shell commands from the either the Atom menu or the Atom Command Palette. In the Command Palette, search for “Window: Install Shell Commands”. To open a specific directory into the Project Explorer, you can add a path argument to the atom command.

How do I run an Atom file in command prompt?

Instead of command line or other IDEs, you just need to press F12 to run your code.

How do I open an Atom file?

Right-click an item in the text editor (or open the context menu on an open editor) and select Open File to open the currently open file in its default application.


2 Answers

just type in a terminal opened ** - in the right directory - **:

atom .

that's all folks!

like image 133
marcdahan Avatar answered Nov 15 '22 05:11

marcdahan


If you're on Windows, you'll have to go to the enviroment variable select and edit the variable path copy and paste the value down the below.

C:\Users\<username>\AppData\Local\atom\bin

You can do this by opening the run dialog (win + r), type "SystemPropertiesAdvanced.exe" and hit enter. Here you should select "Environment Variables..." and edit the Path for your user (because atom is probably installed only for you).

like image 38
ericornelissen Avatar answered Nov 15 '22 04:11

ericornelissen