4 Replies Latest reply on Mar 27, 2007 8:51 AM by tom.baeyens

    spaces versus tabs

    tom.baeyens

      i'm not a code style fanatic, but it would be nice if we all could use
      - spaces instead of tabs
      - indentation of 2 spaces

      or at least that is my proposal. let me know if you think different and wether or not it is a religious matter for you :-)

        • 1. Re: spaces versus tabs
          camunda

          I think every formatting is quite fine, so 2 spaces indent is perfect.

          What would be good is, if you just export your Eclipse formatting settings in a XML (Eclipse can do that) and check that in CVS or at least make it available in the Wiki. So everybody working on jBPm can import these settings and formats well.

          • 2. Re: spaces versus tabs
            dmlloyd

             

            "tom.baeyens@jboss.com" wrote:
            i'm not a code style fanatic, but it would be nice if we all could use
            - spaces instead of tabs


            Definitely.

            "tom.baeyens@jboss.com" wrote:
            - indentation of 2 spaces


            Hm, well I really prefer 4 spaces because with 2 spaces I sometimes have a hard time reading the code. That said, in all cases when I've worked on the current CVS trunk I've used 2 spaces to be consistent with the existing style. But for things that are initially created by myself I've been doing 4 spaces, like jbpm4jsf for example.

            • 3. Re: spaces versus tabs
              kukeltje

              funny, I was going to opt for 3.... really I was, no joking....but for the same reason as david. 2 is to little.

              • 4. Re: spaces versus tabs
                tom.baeyens

                the code profile is checked in (2 spaces). if everyone uses spaces for indentation, that is the most important.

                if it matters for you, feel free to use another indentation size in your component consistently.