Extension applies (default?) settings when .editorconfig is not present
See original GitHub issuePlease fill-in this template.
- 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.
Issue
Visual Studio Code | editorconfig-vscode | |
---|---|---|
Version | 1.30.0 “user setup” |
0.12.5 |
Root .editorconfig
File
There is no .editorconfig
in the workspace at all.
Are there any other relevant .editorconfig
files in your project? No
File opened
Python or sh files, any text file I think.
Expected behavior
No behavior at all, since there is no config file.
Actual behavior
Line endings are changed to CRLF, regardless of VSCode settings
Additional comments or steps to reproduce
In workspace without editorconfig, on save (autosave is enabled), line endings are changed to CRLF, regardless of VSCode setting and regardless of original line endings in the file.
This is on Windows 10
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Settings do not apply if .editorconfig file is not in curently ...
I tried running code --disable-extensions and the issue did NOT present itself. (Does not apply as my problem is with the extensions ...
Read more >EditorConfig settings - Visual Studio (Windows) - Microsoft Learn
Create portable, custom editor settings with EditorConfig ... Ctrl+D in the default profile), which only applies white-space settings, ...
Read more >EditorConfig extension is not working - Visual Studio Feedback
editorconfig settings are applied when editing C/C++ files First, all Microsoft's docs indiacate .editorconfig is looked for recursively in from the same folder ......
Read more >EditorConfig
EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.
Read more >Is there any support for .editorconfig in Visual Studio 2022 at all?
The editor in VS does support .editorconfig natively, although in many cases it's up to the language implementation to apply those settings ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed, editorconfig does show the setting and I found the file with that setting in one of root paths 😕. Sorry for bogus report.
You’ve deleted some pretty relevant sections of the issue template that would be useful in this issue. I’m afraid I am unable to reproduce on Windows 10 on a project I have, after deleting the .editorconfig file entirely.
I need to know exactly the filename of the file that is doing this. If it were
foo.ext
you need tonpm install -g editorconfig && editorconfig foo.ext
to see what the core thinks should be set on this file.Additionally, you’ll find the EditorConfig output window might be helpful in telling you what it’s doing vs. what you expect.