do you guys usually include `.idea/` folder into V...
# random
e
do you guys usually include
.idea/
folder into VCS?
👌 2
no red 15
n
only thing you need to include is
build.gradle(.kts)
and
gradle/
idea can cleanly generate a project from that
g
Yes, but with .idea you can share much more Such as custom checks, custom code style, run confugurations and so on Depends on what you really want to share
n
i generally set up the gradle idea plugin to set up more details if possible, its much safer and more failsafe to use
but yeah custom code styles i would instead add ktlint plugin to gradle
in the case oyu need to share the xml files, make sure you only share what you really need and igore the ret
g
Yes, you should share only some files, not all, there is even docs about it on Idea website
but yeah custom code styles i would instead add ktlint plugin to gradle
Idea has much more checks and help when you write, not just complain when you commit or on CI I still think that share .idea is good approach, and would recommend to do that
e
ok, then I'll keep doing that
I couldnt commit because
.ignore
added
./idea
in the list of the sources to not commit, I added it again manually by commenting it
g
you can add with force flag:
git add -f .idea/some_file
k
JetBrains documents files that you should share under
.idea/
https://www.jetbrains.com/help/idea/2017.3/managing-projects-under-version-control.html#d339029e13 I use https://www.gitignore.io/ to generate my gitignores, and if you add IntelliJ, it gives you the proper setup to just commit the files that should be shared
k
Of course JetBrains is going to say that you should share
.idea/
😛
😛 1
🛸 1
🧌 1
e
🙈
g
And what is funny there? If you use JetBrains IDEs it make sense to share .idea and they recommend it because they do that for own projects and found it useful. Again, if you don't care about code style, project settings, run configurations, excluded imports and default settings are fine for you, do not share .idea
I would rather extend this feature, for example now you cannot share project dictionary using .idea
e
just joking, but I totally agree with all your reasons and I'm sharing it for that