fabric-loom icon indicating copy to clipboard operation
fabric-loom copied to clipboard

IntelliJ Code-Style Config

Open shartte opened this issue 2 years ago • 4 comments

I can see that you attempted to add this to .editorconfig. I don't know if this works for anyone? If it does, it certainly does absolutly nothing for me and routline fails to apply the correct order.

The files in this PR however, will be picked up automatically and applied correctly.

shartte avatar Jan 01 '22 22:01 shartte

The editorconfig file works great for me, im not sure if its plugin I added but I think it comes enabled by default with idea.

modmuss50 avatar Jan 01 '22 22:01 modmuss50

I use this extension for editor config support on Visual Studio Code. As far as I'm aware, there's no way to use IntelliJ code style configurations on Visual Studio Code.

haykam821 avatar Jan 01 '22 22:01 haykam821

It even says this in the editor footer, and STILL uses the incorrect import order, without anything else applied project-local:

grafik

After actually copying the files in this PR over from my local fabric-api project, it finally does work.

p.s.: I am on the latest IntelliJ version, but this has never worked right for me, even months ago.

shartte avatar Jan 01 '22 22:01 shartte

Also for import ordering, I've noticed that idea likes to put them in its default order when importing, and then I have to force the .editorconfig ordering with ctrl+alt+O / optimise imports

Juuxel avatar Jan 01 '22 22:01 Juuxel

Closing this as the editorconfig and spotless settings are working well, we dont use this on any other projects. Thanks.

modmuss50 avatar Dec 15 '23 09:12 modmuss50