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
Currently, multiline regular strings trim away newlines and literal tab characters so that the string can be indented when multilined. Some (or most) editors insert multiple spaces instead of the tab character when the tab key is pressed, so it takes a bit more effort to get a tab character for use here.
For ergonomics, an alternative (possibly breaking change) is if the first " is immediately followed by a newline, the first sequence of spaces right after that newline (e.g. 4 spaces) will become the reference sequence spacing, that would be removed in the following lines.
As an example, given:
the flag could let you choose between X spaces or tabs, or between letting the preprocessor figure it out on its own on every file
But then, what should the default value of the flag be?
Currently, multiline regular strings trim away newlines and literal tab characters so that the string can be indented when multilined. Some (or most) editors insert multiple spaces instead of the tab character when the tab key is pressed, so it takes a bit more effort to get a tab character for use here.
For ergonomics, an alternative (possibly breaking change) is if the first
"
is immediately followed by a newline, the first sequence of spaces right after that newline (e.g. 4 spaces) will become the reference sequence spacing, that would be removed in the following lines.As an example, given:
it will become
This might be unnecessary complexity or might be too confusing, so it should probably be a flag instead of being a default if implemented.
The text was updated successfully, but these errors were encountered: