{ "editor.wrappingIndent": "deepIndent" } for 2 additional tabs on continuation lines#50542
Merged
alexdima merged 1 commit intomicrosoft:masterfrom May 28, 2018
Conversation
…pIndent". The preference value "indent" adds 1 tab to the indentation of continuation lines, additionally to the indentation of the line of text in memory. "deepIndent" adds 2 tabs.
Contributor
Author
|
Related issue: #42203. |
Member
|
👍 Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR introduces the
deepIndentpreference value.Here's an example from the VS Code codebase with an
editor.wrappingIndentvalue ofindentwhich, at first, confused me regarding the opening brace inILineMapping {:Here's the same code with a preference value of
deepIndent:Here's some proof of manual indentation that other people also like this style:
The overwhelming advantage is in the context of block headers when lines follow that are indented deeper by one level. But even in the context of lines all on the same indentation level, it's totally okay in my opinion.