Proposal: Customizable Indentation Display in Editor #11578
Replies: 3 comments 4 replies
-
There is precedent in other text editors: https://marketplace.visualstudio.com/items?itemName=kylepaulsen.stretchy-spaces |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is this something that would be accepted as a PR or is it something unwanted for helix ? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Thank you for the answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I propose a feature to allow customizable visual indentation in the editor. For instance, users could display 2-space indentation while maintaining 4-space indentation in the actual code. Of course it could be anything else but I'll stick to that example for the rest of this post. This would be purely a visual change, leaving the underlying code untouched.
Motivation
While many languages recommend 4-space indentation for consistency, some developers prefer a more compact 2-space visual layout. This feature would allow developers to work with their preferred visual style without breaking standard indentation practices. The standard are very important when working with other people on a project and it's often impossible to choose another standard than the official one. In open source for instance it isn't feasible.
This feature would improve the editing experience by offering visual customization while preserving code consistency. Feedback and discussion are welcome!
Beta Was this translation helpful? Give feedback.
All reactions