-1

I would like to know how to open a html file in atom with the command line.

Now, if I do this for example:

open index.html

It open the file in my browser but I was wondering if there was a command to open it in Atom too.

I'm using a mac and chrome as browser.

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
JulienRioux
  • 2,853
  • 2
  • 24
  • 37

1 Answers1

1

I have not used Atom myself but I assume it is much like other software in that you can open a file from the terminal using it like so:

atom index.html
spacer GIF
  • 626
  • 5
  • 19