1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

#VsCode で新規ファイルを作成してすぐに編集を開始するコマンド ( code /path/to/file.txt )

1
Last updated at Posted at 2019-11-02

コンソールで使える code コマンドをインストールしておく

image

MacでVisual Studio Codeをターミナルから起動する方法。
Command + Shift + Pでコマンドパレット開く。
Shellって検索
インストール

ターミナルからVisual Studio Codeを起動する方法【公式の方法】 - Qiita

コマンド例

code ~/tmp/wow/wow/some.erb

なんと存在しないディレクトリの存在しないファイルでも作成してくれることが判明。

あとは編集、保存するだけ。

image

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?