editorconfig-vscode
editorconfig-vscode copied to clipboard
trim_trailing_whitespace = false not working
- [x] I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
- [ ] I tried running
code --disable-extensions
and the issue did NOT present itself.
Delete the following condition if it doesn't apply to your case:
If the extension is not picking up the expected configuration for a file:
- [x] I tried
npm install editorconfig -g
and raneditorconfig [file-in-question]
and the configuration was what I expected. If not, please file on theeditorconfig-core-js
issue tracker.
Issue
Visual Studio Code | editorconfig-vscode | |
---|---|---|
Version | 1.12.2 |
0.9.3 |
Root .editorconfig
File
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
Are there any other relevant .editorconfig
files in your project? No
Visual Studio Code Setting | Default | User | Workspace |
---|---|---|---|
editor.insertSpaces |
true |
____ |
____ |
editor.tabSize |
4 |
2 |
_ |
editor.trimAutoWhitespace |
true |
____ |
____ |
files.autoSave |
"off" |
"___" |
"___" |
files.insertFinalNewline |
false |
true |
_____ |
files.trimTrailingWhitespace |
false |
true |
_____ |
File opened
./README.md
Expected behavior
trim_trailing_whitespace = false
Actual behavior
trim_trailing_whitespace = true
Additional comments or steps to reproduce
When I add 2 spaces to the end of a line to create a markdown line break and then save the file, the trailing spaces are removed. OS: Ubuntu 17.04