Comments (11)
Hi @TJProgrammer - what exactly is your issue?
from atom-editorconfig.
Hi @florianb.
When I try to fix my .md
files, editorconfig doesn't repair a 2 spaces indent to 4 spaces.
from atom-editorconfig.
@TJProgrammer how do you invoke the fix?
from atom-editorconfig.
From command pallette.
from atom-editorconfig.
Okay - and you have the file you're trying to fix open?
from atom-editorconfig.
Yup 👍
from atom-editorconfig.
@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.
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.
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.
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.
You're welcome @TJProgrammer!
from atom-editorconfig.
Related Issues (20)
- Unmaintained HOT 12
- Uncaught TypeError: wrapGuide.updateGuide is not a function HOT 14
- new
- Multi-page HOT 5
- [Blocked by Atom] Ability to apply corresponding settings for code blocks in Markdown HOT 11
- Accommodating language-specific rules, config, and scopes HOT 2
- Option to preserve whitespace on cursor on autosave HOT 4
- Multiple paths unsupported? HOT 4
- Developer should have a preference for disabling "newline conversion on save" feature HOT 3
- EditorConfig does not report any file inconsistencies based on the configuration file HOT 4
- Unrecognized declaration name `max_line_length` HOT 3
- Whitespace core package conflicting with editorconfig settings HOT 3
- unset means atom-editorconfig is not influencing a property's behaviour.
- Peanut butter sandwich is on *rye* bread, not white bread.
- tab_width is being replaced with indent_size HOT 1
- Move to GitHub Actions HOT 3
- EditorConfig does not fix tabs in files. HOT 2
- Atom HOT 1
- Wrong EditorConfig highlighting for inline comment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-editorconfig.