EditorConfig – file format for defining coding styles and text editor plugins
11–20 of 32 posts
Re: EditorConfig – file format for defining coding styles and text editor plugins
#12Before clicking on the link, I thought "Oh, just another attempt at standardizing editor preferences from a file in a repo." But looking at their list of editors which natively support EditorConfig and the list of plugins for editors which don't, this is far better support than I imagined. This is it! Problem solved.
Honestly I don't think much is solved by EditorConfig. I mean, the idea is great, but the small amount of parameters supported makes it pretty much useless. Indentation character and size, line termination, ... and that's all. I would need a hundred of these (like clang-format, yapf, etc have) to switch to EditorConfig. Unfortunately, looking at the commit log frequency, I doubt EditorConfig will ever have more than…
It's only meant to automatically configure your editor to use the defined tab/space newline preferences per file type.
that's it.
Re: EditorConfig – file format for defining coding styles and text editor plugins
#13yes they have intersecting features, but EditorConfig's main feature is that it lets you set file type specific whitespace rules automatically, across almost all editors.
- Most editors will have a global whitespace rule and you have to use that same rule for every file.
- Some editors can be configured to have different rules per file type but then it can't be done per project. So every project has to use the same rules.
- Some editors will let you configure all of these per project, but you have to save this project-settings file somewhere. Editor specific code is no good in the repo, so you need to maintain/backup it yourself.
EditorConfig solves all of these issues for me.
Re: EditorConfig – file format for defining coding styles and text editor plugins
#14Before clicking on the link, I thought "Oh, just another attempt at standardizing editor preferences from a file in a repo." But looking at their list of editors which natively support EditorConfig and the list of plugins for editors which don't, this is far better support than I imagined. This is it! Problem solved.
Honestly I don't think much is solved by EditorConfig. I mean, the idea is great, but the small amount of parameters supported makes it pretty much useless. Indentation character and size, line termination, ... and that's all. I would need a hundred of these (like clang-format, yapf, etc have) to switch to EditorConfig. Unfortunately, looking at the commit log frequency, I doubt EditorConfig will ever have more than…
Re: EditorConfig – file format for defining coding styles and text editor plugins
#15Before clicking on the link, I thought "Oh, just another attempt at standardizing editor preferences from a file in a repo." But looking at their list of editors which natively support EditorConfig and the list of plugins for editors which don't, this is far better support than I imagined. This is it! Problem solved.
Honestly I don't think much is solved by EditorConfig. I mean, the idea is great, but the small amount of parameters supported makes it pretty much useless. Indentation character and size, line termination, ... and that's all. I would need a hundred of these (like clang-format, yapf, etc have) to switch to EditorConfig. Unfortunately, looking at the commit log frequency, I doubt EditorConfig will ever have more than…
No, it doesn't solve all the things. My experience is that it addresses one specific annoyance - team members checking in changes with varying line endings and spaces/tabs settings - and makes it a thing of the past.
For solving that one thing, I like it a lot.
Re: EditorConfig – file format for defining coding styles and text editor plugins
#16At least in the JavaScript world, this was a lovely thing to have. Now we have linters which are even better! Still nice to include this so that all collaborators don't need to modify their editors to jump in!
Re: EditorConfig – file format for defining coding styles and text editor plugins
#17Re: EditorConfig – file format for defining coding styles and text editor plugins
#18Earlier quoted context omitted.
Honestly I don't think much is solved by EditorConfig. I mean, the idea is great, but the small amount of parameters supported makes it pretty much useless. Indentation character and size, line termination, ... and that's all. I would need a hundred of these (like clang-format, yapf, etc have) to switch to EditorConfig. Unfortunately, looking at the commit log frequency, I doubt EditorConfig will ever have more than…
> Honestly I don't think much is solved by EditorConfig. No, it doesn't solve all the things. My experience is that it addresses one specific annoyance - team members checking in changes with varying line endings and spaces/tabs settings - and makes it a thing of the past. For solving that one thing, I like it a lot.
Re: EditorConfig – file format for defining coding styles and text editor plugins
#19Earlier quoted context omitted.
> Honestly I don't think much is solved by EditorConfig. No, it doesn't solve all the things. My experience is that it addresses one specific annoyance - team members checking in changes with varying line endings and spaces/tabs settings - and makes it a thing of the past. For solving that one thing, I like it a lot.
Well, it moves the problem to making sure that all team members have the right plugins installed and bother to use them. Depending on the make up of your team, that could be a hard problem.
If this is really a hard problem for a team then it's down to the people not the tools.
There is in my experience no "bother to use them" part, it happens automatically when a file is saved.
Even better, "the right plugins" might be none at all. Some IDEs come with editorconfig support out of the box: https://sorokoletov.com/2016/11/28/editorconfig-in-visualstu...
In short, if you have these specific problems, life really is easier with editorconfig.