Skip to main content



      Home
Home » Newcomers » Newcomers » Unable to Enable/apply "format file on Save"(The option to enable "format on save" is not applied to the Java code.)
Unable to Enable/apply "format file on Save" [message #1872419] Wed, 30 October 2024 12:29 Go to next message
Eclipse UserFriend
Hello Team,

I am working on enabling "Format on save" option in Eclipse. I am creating a custom profile which is supposed to do indentation fixes for the current working file on click of save. I am following below methods to ensure its happening.

Window > Preferences > Java > Editor > Save Actions
Select "Format source code"
select "Format edited lines" or "Format all lines"
Apply ---> This is not working

And we even tried these steps:

Window > Preferences > Java > Code Style > Formatter
Created a new Profile called "test"
This as well not working

But for some reason the configuration is not being applied and code is not getting formatted even on save. Could you help us finding a way to achieve this?

Eclipse Version: 2024-09 (4.33.0)
Re: Unable to Enable/apply "format file on Save" [message #1872425 is a reply to message #1872419] Wed, 30 October 2024 14:05 Go to previous messageGo to next message
Eclipse UserFriend
Are you opening and saving Java source files that are inside Source Folders of a Java Project (all according to their proper names in the Eclipse UI)?
Re: Unable to Enable/apply "format file on Save" [message #1872452 is a reply to message #1872425] Thu, 31 October 2024 14:07 Go to previous message
Eclipse UserFriend
Yes, we have provided all the names properly in terms of Eclipse UI. Is there any other way to troubleshoot this issue. Kindly help us here. Also let us know if the version of the Eclipse is an issue here.
Previous Topic:How Do I Uninstall Eclipse Completely from a Mac
Next Topic:eclipse-inst-jre-win64
Goto Forum:
  


Current Time: Wed May 07 06:51:24 EDT 2025

Powered by FUDForum. Page generated in 0.11441 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top