-
Notifications
You must be signed in to change notification settings - Fork 13
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
Auto-indent #294
Comments
Related to #67. |
Could you learn something from the implementations of other text editors? https://github.com/tsujan/FeatherPad/tree/master/featherpad/highlighter |
You have added support for code folding in SpartanJ/eepp@851dfc3. I think it will not be hard for you to add support for basic auto-indent. |
Not from Scintilla/lexilla since it doesn't support auto-indentation.
Auto-indentation does not depend on folding ranges, folding range won't exist while you write any new block of code, you cannot base the auto-indentation from that. True auto-indentation requires language specific code and usually some knowledge of the AST if possible. Also auto-indentation is very user-specific, best solution is supporting tree-sitter, but that won't come soon. |
For example, you typed { and press enter, you will not want to have to type TAB manually. This is the most basic case, though. Please see how other editors are doing and copy. Thank you.
The text was updated successfully, but these errors were encountered: