I'm working on several coding projects with git in collaboration (including my own). One problem I always have with git is that there are changes because of the use of a specific IDE or the use on different platforms.
Common problems:
- Editor specific files are added for example in Vs, Vs Code, KDevelop, Kate etc. (sometimes also through extra plugins)
- Platform settings change source code for example the end line sequence is different on Windows and Linux
I know there are some solutions for this for example using .gitignore for the first problem. But adding all these files for every single editor in gitignore is kinda annoying. And also not always possible (if it's not my own project).
Especially with my own collaboration project now, I realised that there have been so many problems due to the fact that I develop on Linux with atom, vs code, KDevelop and the other one on Windows with Vs. It takes ages to do all the configuration (.gitignore has now 350 lines of code after adding the vs template) and regarding the second problem, which line ending is used can differ from project to project ... so switching manually is annoying.
Is there any good solution, so new and existing contributors don't have to configure there editor for 3h and add bunch of extra files to .gitignore and switch always between different settings for different projects?