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:
Link to upstream references for upvoting as requested in #153 (comment):
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
code --disable-extensionsand 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:
npm install editorconfig -gand raneditorconfig [file-in-question]and the configuration was what I expected. If not, please file on theeditorconfig-core-jsissue tracker.Link to upstream references for upvoting as requested in #153 (comment):
Issue
1.12.20.9.3Root
.editorconfigFileAre there any other relevant
.editorconfigfiles in your project? Noeditor.insertSpacestrue________editor.tabSize42_editor.trimAutoWhitespacetrue________files.autoSave"off""___""___"files.insertFinalNewlinefalsetrue_____files.trimTrailingWhitespacefalsetrue_____File opened
./README.mdExpected behavior
trim_trailing_whitespace = falseActual behavior
trim_trailing_whitespace = trueAdditional 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