Results 1 to 4 of 4

Thread: Set indents

  1. #1
    jboy is offline Member
    Join Date
    Aug 2009
    Posts
    56
    Rep Power
    0

    Default Set indents

    Does anyone know how to set the indents to 4 spaces in BlueJ or Eclipse?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    For BlueJ: ???

    For Eclipse: Windows -- Preferences -- Java -- Code Style -- Formatter
    and in the Formatter create your custom format. Also be sure to set indents to spaces, not tabs.

  3. #3
    jboy is offline Member
    Join Date
    Aug 2009
    Posts
    56
    Rep Power
    0

    Default

    I went to the Formatter but I couldn't find anywhere where I can set the indents to 4 spaces?
    There is only tab size in there that says 4. Please help..
    Is there a way that I can make a tab to work as 4 spaces?
    Last edited by jboy; 09-14-2009 at 05:18 AM.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    huh?

    If you create your own format in the formatter, the very first tab is Indentation. change the Tab policy to spaces only , change the indentation size to 4 (I use 3).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •