Coder Social home page Coder Social logo

Comments (11)

florianb avatar florianb commented on June 15, 2024

Hi @TJProgrammer - what exactly is your issue?

from atom-editorconfig.

tjapro avatar tjapro commented on June 15, 2024

Hi @florianb.
When I try to fix my .md files, editorconfig doesn't repair a 2 spaces indent to 4 spaces.

from atom-editorconfig.

florianb avatar florianb commented on June 15, 2024

@TJProgrammer how do you invoke the fix?

from atom-editorconfig.

tjapro avatar tjapro commented on June 15, 2024

From command pallette.

from atom-editorconfig.

florianb avatar florianb commented on June 15, 2024

Okay - and you have the file you're trying to fix open?

from atom-editorconfig.

tjapro avatar tjapro commented on June 15, 2024

Yup 👍

from atom-editorconfig.

florianb avatar florianb commented on June 15, 2024

@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.

from atom-editorconfig.

tjapro avatar tjapro commented on June 15, 2024

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.

from atom-editorconfig.

florianb avatar florianb commented on June 15, 2024

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.

from atom-editorconfig.

tjapro avatar tjapro commented on June 15, 2024

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).

from atom-editorconfig.

florianb avatar florianb commented on June 15, 2024

You're welcome @TJProgrammer!

from atom-editorconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.