-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Labels
Description
- I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
- I tried running
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:
- I tried
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):
- Builtin and extensive .editorconfig support microsoft/vscode#111396 (comment)
- Temporarily Set Configuration For Save Operation microsoft/vscode#65663
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 = 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
Reactions are currently unavailable