Closed tjapro closed 4 years ago
Hi @TJProgrammer - what exactly is your issue?
Hi @florianb.
When I try to fix my .md
files, editorconfig doesn't repair a 2 spaces indent to 4 spaces.
@TJProgrammer how do you invoke the fix?
From command pallette.
Okay - and you have the file you're trying to fix open?
Yup 👍
@TJProgrammer i just got it, you're trying to fix from spaces to spaces, this is not implemented because it is impossible to fix.
Since we don't know with how many spaces the indentation in the current file is laid out, we can't safely change the indentation.
But if I want to fix it, the script just has to do the indentation according .editorconfig
file, no?
And, when I indent pressing twice the tab
key (2 spaces * 2), the files seems to translate it to a hard tab
instead of a soft tab
.
And I opened this issue because the .md
files need the 4 spaces of indentation to make a sublist working.
When editing the file, the current rules should be applied to your textbuffer. You might check the applied rules using EditorConfig: Check State
.
The Fix-command works only for transformations between tabs and spaces.
If you press the tab key twice and the check state command shows you spaces are applied it is very likely another plugin is interfering the settings.
Ok, thank you. I'll see another plugins in my atom editor.
PS: I checked the same file with nano
and all indentatio is in spaces (as you said, some configuration or the edito itself behaves like that).
You're welcome @TJProgrammer!
Please see https://github.com/prettier/prettier-atom/issues/715
Involved .editorconfig-files
Directory structure
Installed packages