Skip to content

Plugin doesn't include Profile? #260

Closed

Description

@kingthorin

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.

Activity

  1. kingthorin commented on Apr 15, 2018

    @kingthorin
    Author

    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?

  2. cushon commented on Oct 29, 2026

    @cushon
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions