ignoreAlignmentSpaces - an option to make this extension perfectly suit those who use tabs for indentation and spaces for alignment #143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I like this extension a lot but my code does have many sections of imperfect highlighting. An example might be:
I align like this for readability, eg if the equation gets too long.
But tabs for indentation and spaces for alignment is a common style guideline (first google hit of many). This option provides highlighting that perfectly suits this style.
This is a fairly trivial change, the functionality (1 line) is simply to use a different value for
regEx
if this option is set, but adding an option required a few more lines.The
ignoreLinePatterns
option helps, but doesn't solve all the issues that this does (eg, it still either highlights alignment spaces as if they were indents or errors).I added a readme entry, hopefully it's clear enough.
Previously I submitted a suggestion relating to this. (and I took the hint :))
I've been fixing a few of my annoyances with vscode recently to get it fitting perfectly (also added settings to vscode for always indenting empty lines and minimum autocomplete characters) but this is my first pull request, so please tell me if I'm doing anything wrong.