palantir / palantir-java-format

A modern, lambda-friendly, 120 character Java formatter.
Apache License 2.0
403 stars 43 forks source link

Eclipse plugin does not seem to work #1076

Open ratondeau opened 2 months ago

ratondeau commented 2 months ago

What happened?

I build the eclipse plugin and moved the jar to the proper location to the dropins folder but I cannot find a way to activate the plugin or do perform any code formatting like in IntelliJ. In eclipse I only see the default code format settings Eclipse Build-in etc. . What am I missing?

What did you want to happen?

Palantir-Java-Format should be activated and used globally so that it also will be used on save actions etc.

mhagnumdw commented 1 month ago

Same here.

Eclipse Version: 2023-06 (4.28.0) Build id: 20230608-1333

brychcy commented 1 week ago

Maybe you looked at the wrong setting? You have to enable the formatter implementation, not change the format settings, which are ignored anyway. This is a bit hard to find.

On the Preferences > Java Code Style > Java > Code Style > Formatter page, there is a little menu "Formatter implemention" for it.

(You can also do it in the project specific settings Java Code Style > Formatter)

lucas-mpc-brant commented 2 days ago

What is the correct configuration in the formatter page? Despite selecting palantin-java-format as the formatter implementation, it seems active profile still overrides the formatting somewhat.