LoginSignup
1
4

More than 5 years have passed since last update.

VSCodeの再インストール手順

Posted at

Windows環境で 1.26 から 1.28 にアップデートしたとき、スニペットがぶっ飛んだので入れ直した記録。
ちゃんと設定ファイルまで消さないと直らなかったです……。

Settings Sync 拡張機能の導入

設定ファイルやインストール済みの拡張機能を Gist にバックアップしてくれるVSCodeの拡張機能。

再インストール時にすべての設定を削除するので、これでバックアップしておきましょう。

使い方は GitHubのREADME を参考に。
みなさんはアクセストークンとGist IDを間違えないように気をつけてね……。

アンインストール

Scoop からインストールしたため、次のコマンドでアンインストール。

powershell
scoop uninstall vscode

設定フォルダの削除

%APPDATA%\Code 以下と %HOMEPATH%\.vscode 以下を削除する。

powershell
Remove-Item $env:APPDATA\Code -Recurse
Remove-Item $env:HOMEPATH\.vscode -Recurse

再インストール

powershell
scoop install vscode

設定の復元

拡張機能 Settings Sync をインストールし、バックアップした Gist から設定ファイルなどをダウンロードする。

やり方は Settings SyncのREADME を(ry

日本語環境にする

Settings Sync では locale.json がバックアップされないようなので、手動で修正する。

コマンドパレットを開いて

vscode
>configure display language

locale.json を開き、"locale":"ja" に変更しておく。

上記設定が終わったら再起動。

参考

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