facebook

Code Formatting

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #323312 Reply

    David
    Member

    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

    #323323 Reply

    support-joy
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Code Formatting

You must be logged in to post in the forum log in