editorconfig
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| editorconfig [2022-08-26 17:45:56] – angelegt david | editorconfig [2024-08-12 15:43:00] (aktuell) – david | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| Die EditorConfig ('' | Die EditorConfig ('' | ||
| + | [[https:// | ||
| - | ===== Beispiel ===== | ||
| - | <code ini .editorconfig> | + | ===== Beispiele ===== |
| - | # https:// | + | |
| - | # Inspired by https:// | + | ==== Basis ==== |
| - | # Remove the line below if you want to inherit | + | <code ini .editorconfig> |
| root = true | root = true | ||
| - | #### Core EditorConfig Options #### | + | [*] |
| + | charset = utf-8 | ||
| + | end_of_line = lf | ||
| + | indent_size = 4 | ||
| + | indent_style = space | ||
| + | insert_final_newline = true | ||
| + | trim_trailing_whitespace = true | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Ausführlich ==== | ||
| + | |||
| + | <code ini .editorconfig> | ||
| + | root = true | ||
| [*] | [*] | ||
| Zeile 22: | Zeile 34: | ||
| indent_style = space | indent_style = space | ||
| insert_final_newline = true | insert_final_newline = true | ||
| - | tab_width = 4 | ||
| trim_trailing_whitespace = true | trim_trailing_whitespace = true | ||
| [*.{md, | [*.{md, | ||
| trim_trailing_whitespace = false | trim_trailing_whitespace = false | ||
| + | |||
| + | [*.{toml, | ||
| + | indent_size = 2 | ||
| [*.{json, | [*.{json, | ||
| Zeile 35: | Zeile 49: | ||
| indent_style = space | indent_style = space | ||
| - | [*.{xml,svg, | + | [*.{xml, |
| indent_size = 2 | indent_size = 2 | ||
| - | [*.{html, | + | [*.{html, |
| indent_size = 4 | indent_size = 4 | ||
| - | [*.sh] | + | [*.{sh,ps1}] |
| end_of_line = lf | end_of_line = lf | ||
| - | [*.{ps1,cmd,bat}] | + | [*.{cmd, |
| end_of_line = crlf | end_of_line = crlf | ||
| [Makefile] | [Makefile] | ||
| indent_style = tab | indent_style = tab | ||
| - | |||
| - | [*.sln] | ||
| - | end_of_line = crlf | ||
| - | indent_style = tab | ||
| - | |||
| - | [*.{csproj, | ||
| - | end_of_line = crlf | ||
| - | |||
| - | [{app, | ||
| - | end_of_line = crlf | ||
| - | indent_style = tab | ||
| - | tab_width = 2 | ||
| - | |||
| - | [*.{master, | ||
| - | end_of_line = crlf | ||
| - | |||
| </ | </ | ||
/home/http/wiki/data/attic/editorconfig.1661535956.txt · Zuletzt geändert: von david
