Comments (8)
Fixed in #70
from editorconfig-vscode.
Is there any way to get the EditorConfig plugin to override the VS Code settings for indentation? Isn't that the whole point of this plugin?
from editorconfig-vscode.
Sorry you're having this issue! Thanks for the steps to reproduce. I'm definitely not going to have any time to fix the issue this week, but I maybe the following week.
Also, I'm accepting pull requests, so if you have a fix then I will gladly merge and publish.
from editorconfig-vscode.
Yep having the same problem, very annoying. I want use editorconfig for other things but it totally breaks the indentation detection.
from editorconfig-vscode.
Can you show me what your .editorconfig
file looks like? And tell me what file names are showing the issue?
from editorconfig-vscode.
I am definitely seeing the problem on .cpp, .h, .py files I didn't test any others
Below is my current .editorconfig file
[*]
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
from editorconfig-vscode.
Aha, so you don't actually have any indentation settings at all and the plugin is still intercepting the native indentation detection? This helps a lot!
from editorconfig-vscode.
I'm seeing this, as well. My suspicion--from scanning the code--is that this plugin is merging the VS Code defaults (via DocumentWatcher#getDefaultSettings
) with a blank config provided by editorconfig.parse
when either
- there is no
.editorconfig
in any ancestor folder (my case) - there is no matching
.editorconfig
spec for the provided filepath (@mschuckmann's case, if I read correctly)
I think a viable fix might be to not set this line if the options provided from editorconfig.parse
doesn't explicitly specify tab/space settings (i.e. if both insertSpaces
and tabSize
are being defaulted).
But I'm not super familiar with VS Code extensions 😅
from editorconfig-vscode.
Related Issues (20)
- Indent style and size are ignored for default (`*`) wildcard HOT 4
- Space indent size is not working in VSCode version 1.74 HOT 3
- after restart vscode, the opened file in view is not work at the beginning HOT 1
- `indent_size` overrides `tab_size` for tab characters HOT 2
- VSCode Makefile `spaces` not converted to `tab` on save HOT 1
- editoconfig doesn't work on mac HOT 2
- `insert_final_newline = false` not working HOT 6
- editorconfig was forcing up changes
- Feature request: `trim_trailing_whitespace` only on modified lines
- csharp_new_line_before_open_brace not working
- Feature request: Ability to set a .editorconfig to use
- Plugin is disabled when using an SSH FS workspace
- It is non-obvious when editorconfig is overriding my chosen tab/indent settings
- auto input enter
- Removes spaces in template literal strings (JS/TS)
- EditorConfig doesn't work well in VSCode (in specific files) HOT 1
- Feature request: Disable automatic cursor transfer when adding the last line. HOT 3
- Impossible to manually change indent style/size HOT 1
- insert_final_newline will open all files when using `Search & Replace`
- recoil doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorconfig-vscode.