Bug 356628 - [typing] auto-formatting
Summary: [typing] auto-formatting
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-09-02 12:58 EDT by Greg Wittmeyer CLA
Modified: 2011-09-16 02:15 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Wittmeyer CLA 2011-09-02 12:58:42 EDT
The auto-formatting is terrible.  Never does what you want.  Need a way to turn it off completely, so that it never second-guesses you.  Just want a plain text editor.


-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.java.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Remy Suen CLA 2011-09-02 13:03:42 EDT
(In reply to comment #0)
> The auto-formatting is terrible.

Auto-formatting of...? What kind of files are you editing? Java? C/C++? Something else?
Comment 2 Michael Rennie CLA 2011-09-15 11:32:20 EDT
resolving invalid without more information
Comment 3 Greg Wittmeyer CLA 2011-09-15 11:44:42 EDT
I did reply to the follow-up, but apparently that never made it into Bugzilla.  I am editing Java in Eclipse.  I just think it would be a good idea to have the ability to switch off all auto-formatting in one checkbox.  Otherwise, you have to edit a whole boatload of settings to accomplish this.

Seriously though, the auto-formatting is messed up.  Sometimes when I paste in something, it will actually remove tabs before the pasted content!  And after changing tabs to 8 spaces from 4, it really seemed to mess things up.  My code has never looked so ugly, and I'm tired of always fighting the automatic changes that are incorrect.
Comment 4 Michael Rennie CLA 2011-09-15 12:03:49 EDT
moving the JDT UI for comment
Comment 5 Satyam Kandula CLA 2011-09-15 23:10:21 EDT
You are probably talking about indentation. Look at Windows->preferences->Java->Editor->Typing
Comment 6 Dani Megert CLA 2011-09-16 02:15:27 EDT
Greg, this bug is to vague/general. We don't do any auto-formatting out of the box but at some point code is automatically indented. You can disable this on 
Windows > Preferences > Java > Editor > Typing as indicated in comment 5.

If you have concrete things that bother you I suggest to file a bug for each problem with a small test case.