6
4

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 5 years have passed since last update.

VSCode インデントの設定

Posted at

VSCodeのインデントがコピペでぐちゃぐちゃになりかけた人用

インデントの設定

ユーザ設定で[settings.json]を編集

settings.json
"editor.tabSize": 4

作業ディレクトリの設定は、完了

右下のバーの
スクリーンショット 2018-04-01 20.58.59.png
「スペース」の値でインデント数を確認。

これでもインデントが変更しない場合は、
全てのインデントを消して一旦切り取り、
ファイルを閉じて再度開くと
「スペース」の値が変わったと思います。
そこで貼り付けすれば良いです。

また、自動インデントも追記しておきます。

自動インデント

名前:Format Document

ショートカット

  • Windows [Shift] + [Alt] + [F]
  • Mac [Shift] + [Alt] + [F]
  • Ubuntu [Shift] + [Ctrl] + [I]
6
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
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?