Skip to content
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

Feature request: Option enabling +1/2 wrapping indentation towards the parent line #66459

Closed
dschuessler opened this issue Jan 13, 2019 · 2 comments
Assignees
Labels
editor-wrapping Editor line wrapping issues

Comments

@dschuessler
Copy link

The current implementation of wrapping indent allows for four settings:

  • No indentation
  • Wrapped lines get the same indentation as the parents.
  • Wrapped lines get +1 indentation towards the parent.
  • Wrapped lines get +2 indentation towards the parent.

I think the first option has the disadvantage of visually obscuring given indent altogether while the other three options make manually inserted indent indistinguishable from wrapped indent. This is why I prefer a wrapping indent at a level of +1/2 indentation towards the parent.

The advantages especially show with lengthy bullet points in Markdown and with languages with notoriously long lines like Java, where it makes wrapped lines easier to tell apart from non-wrapped lines. For the purpose of this ticket I faked my preferred outcome with additional spaces:

bildschirmfoto 2019-01-13 um 20 58 07

bildschirmfoto 2019-01-13 um 21 14 28

I therefore propose that users should be able to set wrapping indent more precise, for example by setting the number of additional spaces wrapped lines get towards the parent or by providing additional options like +1/2 indent.

@vscodebot
Copy link

vscodebot bot commented Jan 13, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the editor-autoindent Editor auto indentation issues label Jan 13, 2019
@alexdima alexdima added editor-wrapping Editor line wrapping issues and removed editor-autoindent Editor auto indentation issues labels Jan 30, 2019
@dschuessler
Copy link
Author

Meanwhile I discovered that my Markdown story is even better addressed by #66961 while my Java story could be addressed by a proper solution to #47855. Therefore I'm closing this.

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-wrapping Editor line wrapping issues
Projects
None yet
Development

No branches or pull requests

2 participants