New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable differences in word wrap indentation for text languages and source languages #2356
Comments
note that there was also a feature request for this here previously, but the author closed it with no explanation why #1722 |
I am facing this as well today, was this ever resolved? and is this documented somewhere? |
A dedicated <key>hangingIndentPattern</key>
<string><![CDATA[(?x)
( (?: - | * | \d+[.:)]? | ^#+ ) \s+ )(?=\w+)
]]></string> |
Curiously, there is an option to set It would be very helpful if at least this setting could have three different options: Don't indent, indent to same, and hanging indent. I'm surprised that this seems to have remained unresolved for so long. |
Btw., |
According to this Stack Overflow question, the decision to add an extra indentation after word wrapping with
indent_subsequent_lines
set totrue
is based solely on whether the language has been set to a "text"/markup or "source"/code language. This makes sense for straight plaintext, but many markup languages heavily rely on indentation to make them legible.Consider this LaTeX file for a second:
This align environment contains 6 aligned lines of mathematical formulas (aligned at the
&
), but lines 106 and 107 wrap due to their length. The resulting 'extra' lines look like they are additional lines that are misaligned, as they do not begin with&
.The Stack Overflow question suggests the best solution to the problem being to change the syntax file of the language to a code-based language, but also mentions that this breaks other things such as hotkeys and other formatting. It would be nice if there were a syntax specific setting that would allow an override to force an extra indent for markup languages or no indent for code languages.
The text was updated successfully, but these errors were encountered: