ターミナルからAtomやVisual Studio Codeを起動する方法【Mac編 決定版】
ターミナルから Atom や Visual Studio Code を起動する方法
ターミナルから特定のディレクトリやファイルを、 Atom と Visual Studio Code から開けるようにする設定方法についてそれぞれ説明します。
# Atom でカレントディレクトリを開く
atom .
# VSCode でカレントディレクトリを開く
code .
ターミナルから Atom を起動する
Atom のインストール後に、atom
というコマンドから起動できるようにエイリアスを貼ります。
-
~/.bash_profile
に以下の1行を追加
vim や emacs などから.bash_profile
を編集し、以下の1行を追加してください。alias atom="/Applications/Atom.app/Contents/Resources/app/atom.sh"
-
source して有効にする
source ~/.bash_profile
上記の手順の実行後、 bash から以下の方法で Atom を起動できます。
atom .
ターミナルから Visual Studio Code を起動する
Visual Studio Code を起動して設定します。
Visual Studio Code を起動
command
+shift
+p
を押してコマンドパレットを開く。shell
と入力してShell Command: Install 'code' command in PATH
を選択した状態でEnter
でインストール
上記の手順の実行後、 bash から以下の方法で VSCode を起動できます。
code .
Author And Source
この問題について(ターミナルからAtomやVisual Studio Codeを起動する方法【Mac編 決定版】), 我々は、より多くの情報をここで見つけました https://qiita.com/7110/items/80295b0f6661da429e73著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .