2
1

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 1 year has passed since last update.

VSCode コードが編集できない問題

Last updated at Posted at 2023-05-04

VScodeが編集できない。

2023年5月4日の朝。
マークダウン形式のコードを編集しようとしたところ、なんにも編集できない状態だった。

10秒ほど経過: バックスペースが効かない。
全ファイル: 同じ症状。

結論 エクステンションをすべて無効化することで解決

バックスペース問題をとりあえず治した記録です。

1. 更新履歴順にエクステンションを無効化

@updates と記入し、更新順に並べる。
スクリーンショット 2023-05-04 9.53.48.png

関係してそうな拡張機能をガシガシ無効化→再起動

結論:変化なし。

2. VSCodeのQ&Aを確認

  • VSCodeのバージョンアップで、日本語変換がおかしくなったよー!というスレッドが立っていた。
  • 今回のエラーに関しては見つからず。

3. jsonがおかしくないか

VSCodeのjsonファイルに問題があった。

"[css]": {
    "cSpell.showAutocompleteSuggestions": true
      "editor.tabSize": 2
},

コロンの後ろにカンマ(,)が抜けているため、JSON構文エラーが発生してる。
正しい形式は次のとおり。

"[css]": {
    "cSpell.showAutocompleteSuggestions": true,
    "editor.tabSize": 2
},

修正後、VSコードでJSONファイルを再読み込みした。
バックスペースは正常に動作しなかった。

4. エクステンションをすべて無効化

なおった!!
スクリーンショット 2023-05-04 10.06.06.png

どのエクステンションが影響していたのか、ひとつひとつ調べる必要がある。

...そのうちやろう。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?