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
hubisan
changed the title
Formatter replaces multiple spaces with a single space inside a string " " --> " "
Formatter replaces multiple spaces with a single space inside a string
Sep 21, 2023
This is the Trim Extra Spaces setting, you can turn it off and it should be off by default for this reason--thanks for reporting this! Leaving this bug open until I write some code again, should be a very easy fix :)
Ctrl + comma to open settings, then find this one and toggle it off:
Description
The formatter shouldn't replaces multiple spaces with a single space inside strings enclosed with quotations marks.
Snippet before formatting
Expected formatted output snippet
Multiple spaces inside a string should be preserved:
Actual formatted output snippet
Multiple spaces are replaced with a single space:
The text was updated successfully, but these errors were encountered: