Defaults for files without an .editorconfig file
See original GitHub issueEditorconfig seems to be overriding my user preferences for new files with no .editorconfig file. In my Sublime preferences, I have
"tab_size": 2,
"translate_tabs_to_spaces": true
and yet new files start out with 4 spaces set as their default.
Is there any way to set this default within Editorconfig? I don’t see any preferences under Preferences -> Package Settings.
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
EditorConfig settings - Visual Studio (Windows)
Add and remove EditorConfig files ; (Edit > ; Advanced > ; Format Document or ; Ctrl+K, ; Ctrl+D), the white-space settings in...
Read more >Support for "treat as with extension" for files without ...
A common issue with files without extension (and with no specific filename) is that they cannot have a default editor (at least without...
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 >How to specify a default .editorconfig file that should be ...
Go to Vscode settings; In search form input @ext:EditorConfig.EditorConfig; Uncheck Generate Auto; In field Template input path for your own ...
Read more >Why You Should Use EditorConfig to Standardize Code ...
The user's style settings get applied to the files they modify. ... are no standard conventions for how to write an .editorconfig file, ......
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 Free
Top 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

Experienced this issue too multiple times. If there is no
.editorconfigfile the plugin should indeed do nothing.Seems to be caused by an
.editorconfigfile in your user folder~/.editorconfig. If that is removed, it works like expected.+1
When this EditorConfig plugin is active, it overrides Sublime’s indentation auto-detection with its own defaults in the absence of an
.editorconfigfile. The screenshot below shows what happens when a file is selected in the sidebar and then opened in preview mode. You can see that Sublime is correctly trying to set the indentation to 4 spaces (arrow on the left), but is overridden (arrow on the right). Uninstalling the plugin restores Sublime’s proper auto-indentation detection and settings.