How to use
- Fill in Indent style, Indent size, End of line, Insert final newline for Editorconfig.
- To match “Spaces, size 2, LF”, enter Indent style space; Indent size 2; End of line lf; Insert final newline yes.
- Press Generate .editorconfig. The summary line should be “Editorconfig: indent space 2, lf, final newline true”.
- Read every line under “Editorconfig: indent space 2, lf, final newline true” before you copy the Editorconfig result.
- Press Copy for the whole Editorconfig result, or Reset to restore “Spaces, size 2, LF”.
- For the second check, “Tabs and CRLF”, the summary should be “Editorconfig: indent tab 4, crlf, final newline false”.
Formula / how it works
Example “Spaces, size 2, LF” sets Indent style = space; Indent size = 2; End of line = lf; Insert final newline = yes.
Editorconfig returns this exact text:
Editorconfig: indent space 2, lf, final newline true
---
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
Charset is utf-8 and root is true.
Example “Tabs and CRLF” sets Indent style = tab; Indent size = 4; End of line = crlf; Insert final newline = no.
Editorconfig returns this exact text:
Editorconfig: indent tab 4, crlf, final newline false
---
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
insert_final_newline = false
Final newline can be turned off.
Editorconfig vocabulary for this page: editorconfig, indent, charset, newline, root, editorconfig.
Editorconfig pass 1 (“Tabs and CRLF”) prints:
Editorconfig: indent tab 4, crlf, final newline false
---
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
insert_final_newline = false
The words for this pass are editorconfig, indent, charset, newline, root, editorconfig.
Worked examples
Spaces, size 2, LF
Inputs: Indent style: space | Indent size: 2 | End of line: lf | Insert final newline: yes
Set Indent style space, then Indent size 2, then End of line lf, then Insert final newline yes. Press Generate .editorconfig. The Editorconfig summary should read “Editorconfig: indent space 2, lf, final newline true”.
Result: Editorconfig: indent space 2, lf, final newline true
---
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
Charset is utf-8 and root is true.
Tabs and CRLF
Inputs: Indent style: tab | Indent size: 4 | End of line: crlf | Insert final newline: no
Set Indent style tab, then Indent size 4, then End of line crlf, then Insert final newline no. Press Generate .editorconfig. The Editorconfig summary should read “Editorconfig: indent tab 4, crlf, final newline false”.
Result: Editorconfig: indent tab 4, crlf, final newline false
---
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
insert_final_newline = false
Final newline can be turned off.
Use cases
- Check “Editorconfig: indent space 2, lf, final newline true” before trusting a new Editorconfig input.
- Check “Editorconfig: indent tab 4, crlf, final newline false” as the second Editorconfig case.
- Charset is utf-8 and root is true.
- Final newline can be turned off.
Tips & limitations
- “Spaces, size 2, LF”: Charset is utf-8 and root is true.
- “Tabs and CRLF”: Final newline can be turned off.
- Editorconfig fields: Indent style, Indent size, End of line, Insert final newline.
- The Editorconfig summary for the opening example is “Editorconfig: indent space 2, lf, final newline true”.
FAQ
What does “Spaces, size 2, LF” return?
Editorconfig summary: “Editorconfig: indent space 2, lf, final newline true”. Full result: Editorconfig: indent space 2, lf, final newline true --- root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 insert_final_newline = true
What does “Tabs and CRLF” return?
Editorconfig summary: “Editorconfig: indent tab 4, crlf, final newline false”. Full result: Editorconfig: indent tab 4, crlf, final newline false --- root = true [*] indent_style = tab indent_size = 4 end_of_line = crlf charset = utf-8 insert_final_newline = false
Which values produce “Editorconfig: indent space 2, lf, final newline true”?
Indent style: space | Indent size: 2 | End of line: lf | Insert final newline: yes
Which values produce “Editorconfig: indent tab 4, crlf, final newline false”?
Indent style: tab | Indent size: 4 | End of line: crlf | Insert final newline: no
How is “Editorconfig: indent space 2, lf, final newline true” different from “Editorconfig: indent tab 4, crlf, final newline false”?
“Spaces, size 2, LF” gives “Editorconfig: indent space 2, lf, final newline true”. “Tabs and CRLF” gives “Editorconfig: indent tab 4, crlf, final newline false”.
What does Editorconfig include in the full first result?
Editorconfig: indent space 2, lf, final newline true --- root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 insert_final_newline = true
Runs entirely in your browser; nothing is uploaded. Check the output before you rely on it in production code, data or security decisions.