Community
Participate
Working Groups
Created attachment 117711 [details] my current preferences Build ID: M20080911-1700 The Source . Correct Indentation command doesn't seem to follow the Java . Code Style . Formatter settings at all. When invoking Format on the following lines it indents them as follows: : public void test1() : throws Exception, : Exception : { : InputStream testInput = this : .getClass() : .getResourceAsStream( : "/dsb/accump3/submain/yEncTest1Input.yenc" ); invoking Correct Indentation changes the indentation to this: : public void test1() : throws Exception, : Exception : { : InputStream testInput = this : .getClass() : .getResourceAsStream( : "/dsb/accump3/submain/yEncTest1Input.yenc" ); Steps To Reproduce: 1. Have a formatter configuration and code that show the problem (e.g., my attached preferences and the above code nested in a class declaration). 2. Select the code and invoke Source . Format. 3. Invoked Correct Indentation. 4. Notice that the indentation changes (and changes to something other than what is specified in the formatter configuration). More information: (If somehow the Correct Indentation command is not intended to follow the formatter preferences, then 1) that needs to be make much clearer in the documentation (and probably in the GUI), and 2) the indenter needs to be configurable too.
Move to JDT/UI to investigate
*** This bug has been marked as a duplicate of bug 75573 ***