Bug 24200 - "Space inside parens & brackets" option in Code Formatter
Summary: "Space inside parens & brackets" option in Code Formatter
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-27 16:06 EDT by Paul Muschick CLA
Modified: 2003-10-13 12:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Muschick CLA 2002-09-27 16:06:01 EDT
Add the option to format source code with a space at the beginning and at the 
end of an expresion within parentheses and/or brackets.  Functions used without 
arguments would not have spaces inside their parens.

Examples:

println("Hello World"); would become println( "Hello World" );
foo = (9 + 1) * 5; would become foo = ( 9 + 1 ) * 5;
array[5]; would become array[ 5 ];
foo(); would stay foo();
bar(void); would become bar( void );
Comment 1 Kai-Uwe Maetzel CLA 2002-10-07 11:35:19 EDT
Core formatting issue before UI would have to be added.
Comment 2 Olivier Thomann CLA 2003-01-15 13:22:37 EST
We need to clear 2.1 bug reports that won't be addressed before 2.1. The new 
implementation is still in the works. Therefore we cannot include it for 2.1. 
Not enough testing and we need to polish the preferences. This will be address 
for 2.2 as stated in the JDT/Core plan.
Comment 3 Philipe Mulet CLA 2003-06-12 06:35:58 EDT
Resurrecting for 3.0
Comment 4 Olivier Thomann CLA 2003-06-12 15:58:47 EDT
Reopen for 3.0 consideration.
Comment 5 Olivier Thomann CLA 2003-10-03 10:07:26 EDT
This is addressed in the new formatter.
Fixed and released in HEAD.
Regression test added.
Comment 6 David Audel CLA 2003-10-13 12:11:29 EDT
Verified