Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367226

Summary: [formatting] Autoformat Code when Loaded and Saved with 2 Different Formatter Profiles
Product: [Eclipse Project] JDT Reporter: Nathan Reynolds <numeralnathan>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: deepakazad
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nathan Reynolds CLA 2011-12-20 12:35:51 EST
Build Identifier: 20110916-0149

I have a particular style I like to read my Java code.  I have customized the code formatting rules to get very close to my style.  Others have their own style that they like.

Please add an option to automatically reformat the Java code to my style whenever the file is loaded.

Please add another option to automatically reformat the Java code to another style whenever the file is saved.

Thus, I will always see Java code how I like to look at it.  Also, everyone
in a team can have their own formats.  Whenever we check in, a consistent
format will be checked in so that diffs will only show the relevant changes.

Reproducible: Always
Comment 1 Deepak Azad CLA 2011-12-20 13:23:44 EST
You are looking for bug 45423.

*** This bug has been marked as a duplicate of bug 45423 ***