LoginSignup
0
0

More than 5 years have passed since last update.

codeコマンドが突然使えなくなった時

Posted at

今まで普通に使えていたのが突然下記エラーで使えなくなりました。
パスはちゃんと通っているのに……。

command
$ code README.md
/bin/bash: C:/Program Files/Microsoft VS Code/bin/code: No such file or directory

.bashrc へ、下記を追加で使用できるようになります。
※要コンソール再起動(もしくは source ~/.bashrc

.bashrc
alias code="cmd //C 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