-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEFeature RequestIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
Version Used: Git master (c4bd5b2)
Steps to Reproduce:
- Create a project with a simple class
- Indent with 4 spaces, set line endings to LF, and remove last newline.
- Add an
.editorconfigfile with the following configuration:
[*.{cs,csx,vb,vbx}]
indent_size = 2
end_of_line = crlf
insert_final_newline = true
Expected Behavior:
2-space indent, new line at the end of the class and CRLF line endings.
Actual Behavior:
Just 2-space indent.
While dotnet-format output changes depending on EditorConfig settings like indent_size, it doesn't seem to respect end_of_line or insert_final_newline. I don't really understand why because Roslyn apparently reads these settings.
Where should I start looking if I wanted to contribute support for these?
I've seen feature requests like #20356 and #18934, but both target Roslyn (not dotnet-format itself), and were closed.
Thanks!
hexawyz and AdamCaviness
Metadata
Metadata
Assignees
Labels
Area-IDEFeature RequestIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
Complete