Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Whitespace doesn't get removed for .slim files #123

Open
danielcgold opened this issue Jun 9, 2016 · 5 comments
Open

Whitespace doesn't get removed for .slim files #123

danielcgold opened this issue Jun 9, 2016 · 5 comments

Comments

@danielcgold
Copy link

I have several slim files and whitespace doesn't get removed upon saving.

@dakotahp
Copy link

➕1️⃣ I have this issue as well as everyone else in my company. Our slim templates are filled with random whitespace. Is there any config settings to force this in the meantime? The following does not work:

".slim":
  whitespace:
    removeTrailingWhitespace: true

@codebryo
Copy link

codebryo commented Oct 5, 2016

If that is not working for some one, I had it working for me using:

".slim.text":
  editor:
    preferredLineLength: 120
    softWrapHangingIndent: 2
  whitespace:
    ignoreWhitespaceOnCurrentLine: false
    ignoreWhitespaceOnlyLines: false
    removeTrailingWhitespace: true

and be sure to have it added to the end of the config file. It didn't work for me when it was somewhere in between. Also, feel free to ignore the extra configuration values :D

@danielcgold
Copy link
Author

danielcgold commented Oct 5, 2016

@codebryo tried your snippet. No luck 😭

@sergiopantoja
Copy link

Snippet didn't work for me either. If a maintainer can point me in the right direction, I can work on a PR for this.

@winstliu
Copy link
Contributor

I'm surprised this isn't working. There's even an example for it in the README. Can someone copy/paste the output of editor:log-cursor-scope on a Slim file?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants