Closed fpuga closed 1 year ago
Hi @fpuga - thanks for getting in touch. I will take a look at this (i guess next week), but i fear this isn't anything we can handle in this package. The reason is that we're setting the buffer's indentation in a general setting and Atom is applying the settings to the newlines independently.
Thanks for sharing your thoughts. As I say, this can be the expected behaviour for some users. Maybe is just a matter of taste. For example, emacs, also have some weird behaviours in this topic. If the electric-indent-mode is enabled (and it is by default), when you press enter on a line, the current line and the next line are both indented. So I understand that it does not have an easy fix.
Thanks for that hint @fpuga - this sounds pretty interesting. I think editorconfig doesn't cover that feature in general but i'll have a look.
Closing as Atom is abandoned.
I'm not sure if this is a bug or a feature, but right now instead of using the defined
indent_size
if you are typing in a line that is already indented the indent size used is the one of the actual ones and not the one in the configuration.Steps to reproduce:
Involved .editorconfig-files
Directory structure