You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I tried to get the plugin setup in Eclipse (neon 2) today. I tried both 1.3 (as is linked from the main README) and 1.5. With either of them I see the implementation added in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation, however there isn't a profile added to the "Active Profile" dropdown (which means Eclipse's profile is left as default).
I opened a java class, autoformatted it, which used the google formatting (great). However, when I then added a new line it included a tab along with the spaces, when I press tab it actually tabs (vs. inserting spaces as indicated in the style)...
Also note when 1.5 is installed the implementation dropdown still shows 1.4.
The Eclipse plugin hooks in via JDT's CodeFormatter extension point (Java > Code Style > Formatter > Formatter implementation) rather than an XML formatter profile, and support for selecting AOSP style in the Eclipse plugin was added in 60a00f2.
Activity
kingthorin commentedon Apr 15, 2018
If I also import the profile (https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml) then it behaves as expected (as far as tabs go anyway). Shouldn't that style profile be included in the plugin?
cushon commentedon Oct 29, 2026
The Eclipse plugin hooks in via JDT's
CodeFormatterextension point (Java > Code Style > Formatter > Formatter implementation) rather than an XML formatter profile, and support for selecting AOSP style in the Eclipse plugin was added in 60a00f2.