Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim Trailing Whitespace Breaks Markdown #1679

Closed
TheColorRed opened this issue Dec 28, 2015 · 4 comments
Closed

Trim Trailing Whitespace Breaks Markdown #1679

TheColorRed opened this issue Dec 28, 2015 · 4 comments

Comments

@TheColorRed
Copy link

When this is set to true

"files.trimTrailingWhitespace": true

trailing spaces get removed at the end of the line in md/markdown files. By default, two spaces in markdown is the same as a <br>. When saving the file with that setting, those two spaces get removed and it changes the output of the markdown.

@bpasero
Copy link
Member

bpasero commented Dec 29, 2015

Well I think we need language specific setting overrides which we have a feature request already for.

@bpasero bpasero closed this as completed Dec 29, 2015
@matthewjohnston4
Copy link

@bpasero could you link to the other feature request to make it easy to find? Not sure whether this issue has been fixed!

@bpasero
Copy link
Member

bpasero commented Jun 9, 2016

I think you can use the editor-config extension to configure this now (https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)

@pszlazak
Copy link

pszlazak commented Aug 20, 2017

Successfully disabled files.trimTrailingWhitespace for Markdown using language specific settings.
Snippet from my settings.json:

    "files.trimTrailingWhitespace": true,
    "[markdown]": {
        "files.trimTrailingWhitespace": false
    },

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
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

4 participants