Git Product home page Git Product logo

Comments (2)

hazendaz avatar hazendaz commented on May 24, 2024

There is another setting you will also need to set to 4. That one is for line continuation. The other will control the rest. I forget the element name offhand.

Sent by Outlook for Android

On Tue, Nov 10, 2015 at 5:00 PM -0800, "Daniel Khashabi" [email protected] wrote:
So I got the Google java style from here:
https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml

And added to the formatter plugin. The outputs seemed like it is doing 2-space indentation. But I want 4-space indentation. I think I found the like which controls the indentation:

<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>

Changed to:

<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="4"/>

Ran the formatter:format again, but nothing changed. Am I doing something wrong?


Reply to this email directly or view it on GitHub:
#85

from formatter-maven-plugin.

hazendaz avatar hazendaz commented on May 24, 2024

@ danyaljj

This is the settings you need to enforce 4 spaces when using googles rules.

They have that set to 2. Try that, if it doesn't work, you could look at my build tools project which contains both 2 character and 4 character files for use. The 'build tools' works with 0.5.2 version of this code base. If you have any further issue, please feel free to re-open this.

com.github.hazendaz build-tools 1.1.2

from formatter-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.