Last active
September 8, 2024 09:09
-
-
Save mebiusbox/c660eee4639989e8f1ebe1a3b80e5ade to your computer and use it in GitHub Desktop.
editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://editorconfig.org/ | |
root = true | |
[*] | |
charset = utf-8 | |
indent_size = 4 | |
indent_style = tab | |
tab_width = 4 | |
end_of_line = crlf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
# max_line_length = 119 | |
# https://learn.microsoft.com/en-us/visualstudio/ide/cpp-editorconfig-properties?view=vs-2022 | |
[*.{c,cpp,cxx,h,hxx,inl,glsl,hlsl,rs}] | |
# curly_bracket_next_line = false | |
[*.{lua,bat,cmd}] | |
[*.{cs,ps1,psd1,psm1}] | |
[*.md] | |
# 環境によって末尾の空白2つで改行扱いするものがある | |
trim_trailing_whitespace = false | |
indent_style = space # MD010 | |
indent_size = 2 | |
[*.py] | |
indent_style = space # PEP8 | |
[*.{htm,html,tsx,xml,css,scss,js,ts,yml,yaml,toml,json}] | |
indent_style = space | |
indent_size = 2 | |
[*.{yml,yaml}] | |
trim_trailing_whitespace = false | |
indent_style = space | |
indent_size = 2 | |
[package.json] | |
indent_size = 2 | |
[*.txt] | |
insert_final_newline = false | |
#-------------------------------------------------------------------- | |
# insert_final_newline, trim_trailing_whitespace が反映されない場合、 | |
# Visual Studio Code 側の設定を確認すること. | |
# - files.insertFinalNewLine | |
# - files.trimTrailingWhitespace | |
# - editor.trimAutoWhitespace | |
# Visual Studio Code のEditorConfig拡張機能では以下の項目は保存時: | |
# - end_of_line | |
# - insert_final_newline | |
# - trim_trailing_whitespace | |
#-------------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment