0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EditorConfigを使おう!

Last updated at Posted at 2025-09-28

EditorConfigとは?

EditorConfigは複数の開発者が様々なエディタやIDEを使用する時に一貫したスタイルを適用するために定義できるファイルになります。

設定内容

項目: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

  • indent_style: ハードタブまたはソフトタブを選択する
  • indent_size: ソフトタブのインデント数を指定する
  • tab_width: ハードタブの幅を指定する
  • end_of_line: 改行コードを指定する
  • charset: 文字コードを選択する
  • trim_trailing_whitespace: 行の空白を削除する
  • insert_final_newline: 最終行に空行を追加する

設定例

root = true

[*]
end_of_line = lf
charset = utf-8

[*.ts]
insert_final_newline = true
indent_style = space
indent_size = 2

[*.{json,yml}]
indent_style = space
indent_size = 2

参考

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?