MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sonoerin
Post subject: Code Formatting  PostPosted: Feb 14, 2012 - 07:53 PM
Veteran Member
Veteran Member


Joined: Jul 22, 2005
Posts: 107

Our team is using MyEclipse 8.6 and I am trying to enable the On Save Code formatting. We have a formatter defined in Window | Preferences | Java | Code Style | Formatter. These settings are saved off and checked into source control. I am trying to enable the On Save functionality so whenever a file is saved, the formatting rules are applied. I did this by: Window | Preferences | Java | Editor | Save Actions: checked the "Perform the selected actions on save" | "Format source code" | "Format All Lines"

However, changing and modifying a file does not result in any formatting applied. If I use the "Ctrl-Shift-F" then the formatting occurs. I don't see any errors or warning about why this isn't working
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-joy
Post subject:   PostPosted: Feb 15, 2012 - 07:36 AM
Registered Member
Registered Member


Joined: Feb 03, 2009
Posts: 3442

sonoerin,

I am afraid I cannot reproduce this issue. I defined indentation size and tab size as 10 in the formatter and it works fine on save or edit. Could you provide below details to help me investigate further -
1. Open MyEclipse IDE. From menu options click on MyEclipse > Installation Summary > Installation Details and copy and paste the same here
2. What are the rules you have defined in your formatter?
3. Could you attach screenshot of the issue to help me get a visual.
4. Have you added any third party plugins to your ME 8.6 profile? If yes, please list them here and attach a screenshot of MyEclipse Configuration Center > Software tab
5. Clear your .log file located at [your workspace dir]/.metadata/.log, replicate the issue and attach the same here.

_________________
Joy
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits