52
32

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のインデント幅を言語毎に指定する

Last updated at Posted at 2019-02-13

#概要
使用言語ごとにtabでのインデントを指定したいことがあるので(例:rubyでは2行、pythonでは4行)、指定方法をメモする。
#実装
VSCodeを開いて、Ctrl+Shift+Pを押す。
入力画面にPreferences: Configure language specific settingsを入力。
言語を指定すると、settings.jsonが開くので、下記のように記入(例;Ruby)。

settings.json
{
    "[ruby]": {
        "editor.tabSize": 2
    }
}

#参照元
Visual Studio Codeで言語ごとにインデントの設定をしたい
VSCodeドキュメント

52
32
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
52
32

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?