Bug 63621 - [format] When specifying to use tabs or spaces, the formatter should replace existing whitespace.
Summary: [format] When specifying to use tabs or spaces, the formatter should replace ...
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 49896
Blocks:
  Show dependency tree
 
Reported: 2004-05-23 19:21 EDT by Robert (Kraythe) Simmons CLA
Modified: 2009-08-30 02:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert (Kraythe) Simmons CLA 2004-05-23 19:21:24 EDT
The Code formatter has an option for indenting using tabs but it doest replace 
whitespace that already uses spaces. it should do this. Furthermore, it should 
have an option to only use tabs for leading indents (indent to level and not 
lining up parameters). For reference, please see how jalopy indent options 
with leading tabs works.
Comment 1 Olivier Thomann CLA 2004-05-23 22:03:23 EDT
Reconsider post 3.0.
Comment 2 Robert (Kraythe) Simmons CLA 2004-05-24 04:59:31 EDT
I am distressed now that there are two bugs I have submitted on the formatter 
that are now summarily "resolved". It is as if someone is trying to falsely 
show that there are no bugs in the 3.0 version. 

The formatter is completely useless to me in its current state and will remain 
so until it can create whitespace properly. I doubt I am the only one with 
this opinion. 
Comment 3 Robert (Kraythe) Simmons CLA 2004-09-20 15:12:04 EDT
Reopned for 3.1 hopes. =) 

I changed the description to be a bit more enlightening. However without 49896 
resolved, this would actually fry perfectly formattted files. 

It should probably be an option to replace existing whitespace and not merely 
always done.
Comment 4 Olivier Thomann CLA 2005-03-29 14:15:08 EST
Could you please give an example that doesn't work? Where whitespaces are not
propertly replaced.
Comment 5 Philipe Mulet CLA 2005-04-07 09:26:11 EDT
Deferring post 3.1
Comment 6 Robert (Kraythe) Simmons CLA 2005-04-08 04:18:27 EDT
Once again, formatting that is fundamental to anyone using tabs is being
deferred. Its really frustrating because it seems like the team is only
supporting formatting options that they personally like. There are lots of
people using the product and leading tab formatting is one of the most commons
styles I have seen in 8 years of consulting. 

I suppose I just cant use the eclipse formatter since they dont want to support
BASIC functionality. 
Comment 7 Olivier Thomann CLA 2005-04-08 08:49:58 EDT
Why didn't you reply to comment 4?
There is some support in place for mixed tabs/spaces. So I'd like you to give me
an example that fails.
Comment 8 Eclipse Webmaster CLA 2009-08-30 02:35:58 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.