question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension applies (default?) settings when .editorconfig is not present

See original GitHub issue

Please 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ezolenkocommented, Dec 17, 2018

Indeed, editorconfig does show the setting and I found the file with that setting in one of root paths 😕. Sorry for bogus report.

0reactions
jednanocommented, Dec 17, 2018

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 to npm 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found