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

Nuxt DevToolsでなぜかnanoエディタを開いてしまうのを解決する

Posted at

Nuxt3を開発モードで立ち上げるとNuxt DevToolsが一緒に起動するよね。DevToolsからVSCodeと連携すると、ブラウザ上で選択したUIをエディタで開くことができる。元々はVSCode上で選択したコードを見ることができていたのだけど、いつの間にかnanoエディタで開くようになって大変辛かったので、その原因調査と対策についてここに書き留めることにした。

開くエディタを決めてるのはどこの誰?

環境変数で指定されている。

echo $EDITOR
# /usr/bin/nano

じゃあどうすればいいの

環境変数を目的のエディタに書き換えればOK。

export EDITOR=code
0
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
0
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?