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
Punctuation adjacent to a word without any whitespace is able to wrap to the next line on its own, or be left behind on its own prior to a word wrapping. This is a problem not only in terms of personal preference, but also because it makes it impossible to see if there's an accidental whitespace character inside of quotes sometimes.
Plaintext wrapping properly:
Code text wrapping incorrectly:
Concern about extra whitespace:
Preferred solution
Add a preference called "word_wrap_locations" which is a list of regex with a ! or other character indicating where wraps are permitted. For example, to wrap only at whitespace, you could set !\s and \s!. To allow wrapping before a period that's a method call, but NOT before a period that's the end of a sentence (for example in a comment or raw string) you could do !\.\w
Alternatives
Add a preference to set word wrapping to behave like plaintext inside of quotations
Make a preference for word_wrap_style that can be either plaintext or code and then that can be set by users per language or globally.
Related Issues
This issue is related to #2356, but I think the problem there is a more specific case of this, and motivated for a different reason.
The text was updated successfully, but these errors were encountered:
Problem description
Punctuation adjacent to a word without any whitespace is able to wrap to the next line on its own, or be left behind on its own prior to a word wrapping. This is a problem not only in terms of personal preference, but also because it makes it impossible to see if there's an accidental whitespace character inside of quotes sometimes.
Plaintext wrapping properly:
Code text wrapping incorrectly:
Concern about extra whitespace:
Preferred solution
Add a preference called "word_wrap_locations" which is a list of regex with a ! or other character indicating where wraps are permitted. For example, to wrap only at whitespace, you could set
!\s
and\s!
. To allow wrapping before a period that's a method call, but NOT before a period that's the end of a sentence (for example in a comment or raw string) you could do!\.\w
Alternatives
Related Issues
This issue is related to #2356, but I think the problem there is a more specific case of this, and motivated for a different reason.
The text was updated successfully, but these errors were encountered: