👷

CursorからVS Codeに戻す手順

に公開

しばらくCursorを使っていたけどVSCodeに戻しました。
すでにCursorのサブスクリプションをしていないことと、使用できない拡張が出てきたので戻すことにしました。
GUIで行う方法があるのかもしれないけど、うまく見つけられなかったのでMacにおいての最低限の移行の手順を残しておきます。

setting.jsonの移行

# 念の為もとのsetting.jsonを残しておく
# cp ~/Library/Application\ Support/Code/User/settings.json ~/Library/Application\ Support/Code/User/old_settings.json

# Cursorのsettings.jsonをVS Codeのディレクトリコピー(上書き)
cp ~/Library/Application\ Support/Cursor/User/settings.json ~/Library/Application\ Support/Code/User/settings.json

extensionの移行

cursorコマンドとcodeコマンドを使用できるようにする

  • CursorでF1を押して Shell Command: install 'cursor' command を実行
  • VSCodeでF1を押して Shell Command: install 'code' command を実行

Cursorにインストールした拡張をVSCodeに一括インストール

# Cursorでインストール済み拡張機能リストを取得
cursor --list-extensions > extensions.txt

# VS Codeで一括インストール
cat extensions.txt | xargs -L 1 code --install-extension

Discussion