You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose we add support for the end_of_line setting in editorconfig, which is a core setting that allows a user to select the newline character to use in their code, centralizing that in one location.
The existing way Fantomas deals with this problem is to assume the value of Environment.Newline for using newlines, which does not work when the user selects to use \n everywhere in their editorconfig but writes code on Windows, for example.
Pros and Cons
The advantages of making this adjustment to Fantomas are more unification with other tools that embed line-ending information in editorconfig files.
The disadvantages of making this adjustment to Fantomas are slightly increased code complexity, because the chosen newline configuration would need to be threaded through the codebase wherever it was needed.
Examples
Please provide multiple examples (before and after scenarios) and explain what rules did apply to achieve the outcome.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Related suggestions: (put links to related suggestions here)
I propose we add support for the
end_of_line
setting in editorconfig, which is a core setting that allows a user to select the newline character to use in their code, centralizing that in one location.The existing way Fantomas deals with this problem is to assume the value of
Environment.Newline
for using newlines, which does not work when the user selects to use\n
everywhere in their editorconfig but writes code on Windows, for example.Pros and Cons
The advantages of making this adjustment to Fantomas are more unification with other tools that embed line-ending information in editorconfig files.
The disadvantages of making this adjustment to Fantomas are slightly increased code complexity, because the chosen newline configuration would need to be threaded through the codebase wherever it was needed.
Examples
Please provide multiple examples (before and after scenarios) and explain what rules did apply to achieve the outcome.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: