mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-05 04:06:20 -05:00
The XSL files are mostly indented with 2 spaces. Using the default editorconfig rules in VSCode constantly tries to mix in tabs. Add the 2-space rule for .xsl files to fix this. The .xsl files, like .xml files, use a tab character in place of 8 spaces. This complicates things, and the new rule will prefer just spaces. To keep the existing sometimes-tab-indented code looking right, the tab width must be explicitly set to 8. Signed-off-by: Pekka Paalanen <pq@iki.fi>
29 lines
397 B
INI
29 lines
397 B
INI
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
indent_style = tab
|
|
indent_size = 8
|
|
max_line_length = 80
|
|
|
|
[*.xml]
|
|
indent_style = tab
|
|
indent_size = 2
|
|
tab_width = 8
|
|
|
|
[*.xsl]
|
|
indent_style = space
|
|
indent_size = 2
|
|
tab_width = 8
|
|
|
|
[*.py]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[*.yml]
|
|
indent_style = space
|
|
indent_size = 2
|
|
max_line_length = off
|