Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [Formatter] Function calls don't honor indentation settings?
icon9.gif  [Formatter] Function calls don't honor indentation settings? [message #534731] Thu, 20 May 2010 03:57 Go to next message
Eclipse UserFriend
My indentation policy is: spaces only, indentation size 2, tab size 2.

It works correctly when starting a new line in statements:
foo() {
  bar()
}

However, when I need to place function arguments on several lines, I get indentation of 4 instead:
foo(
    bar()
)

Can I get it to use 2 spaces for function arguments as well?

[Updated on: Thu, 20 May 2010 03:57] by Moderator

Re: [Formatter] Function calls don't honor indentation settings? [message #534953 is a reply to message #534731] Thu, 20 May 2010 14:48 Go to previous message
Eclipse UserFriend
On 5/20/2010 1:27 PM, Alexey Romanov wrote:
> My indentation policy is: spaces only, indentation size 2, tab size 2.
>
> It works correctly when starting a new line in statements. However, when
> I need to place function arguments on several lines, I get indentation
> of 4 instead:
>
> foo() {
> bar()
> }
>
> but
>
> foo(
> bar()
> )
>
> Can I get it to use 2 spaces for arguments as well?
Try 'Line Wrapping' -> Method Declarations -> Indentation Policy :
Indent by one
Previous Topic:Compiling project with lower Java version
Next Topic:Custom property page does not work for compilation units in Package Explorer
Goto Forum:
  


Current Time: Fri Mar 21 23:55:25 EDT 2025

Powered by FUDForum. Page generated in 0.03113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top