dfmt
dfmt copied to clipboard
passing .editorconfig via --editorconfig=/path/to/.editorconfig
this would make it easier to share .editorconfig across different projects; or is there a better way? the docs regarding .editorconfig are not the clearest
When opening a file, EditorConfig plugins look for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.
That is what EditorConfig says.
How do you imagine to share the file with multiple projects? If they are in different repositories, then it makes sense to have a copy in each repo anyways. If you have multiple projects within a repository, then you have a common parent directory where you can put the shared file.
Functionality like this is needed for editor integration, where you'd want to specify a file/path assumption for input passed through stdin. See #202 .