15
14

More than 5 years have passed since last update.

ターミナルから、Atomでファイルを開いてみる

Last updated at Posted at 2017-05-07

MacのターミナルからAtomでファイルを開く方法を調べたのでメモ

準備

Atomを起動して、Atom > Install Shell Commandsでatomとapmをインストールする。

方法

  • Atomを開く
    $ atom

  • 今いるディレクトリ内でAtomを開く
    $ atom .

  • 特定のディレクトリ内でAtomを開く
    $ atom folder_name

  • 特定のファイルをAtomで開く
    $ atom file_name (指定のファイルがなければ新規で作成される)

例:desktopにいる時に、新規ディレクトリhogeを作成+その中に新規ファイルhoge.jsを作成。
desktop (ユーザ名)$ atom ./hoge/hoge.js

参考

15
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
14