-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
  • 37,115
  • 15
  • 104
  • 98
JulienRioux
  • 1,752
  • 1
  • 14
  • 26

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
  • 412
  • 3
  • 16