Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to synchronize "Clean Up" and "Save Actions"(Java Formatter)
How to synchronize "Clean Up" and "Save Actions" [message #1851405] Tue, 05 April 2022 03:06 Go to next message
Eclipse UserFriend
Hi,

if you define formatter rules (Java - Code Style - Formatter), these are simple rules like Indentation. More complex rules are defined in "Clean Up" like "Use blocks in if/while/for/do statements". The same preferences can be configured in the Java - Editor - Save Actions. But I have to configure it twice. For me it doesn't make sense, to distinguish between these two rulesets. So my question is: can I synchronize the "Clean Up" rules with the "Save Actions" rules?

Kind regards,
Stefan
Re: How to synchronize "Clean Up" and "Save Actions" [message #1851435 is a reply to message #1851405] Tue, 05 April 2022 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Just the other day I noticed the same issue. I configured a nice Cleanup Profile and then wanted to select that named profile on the "Save Actions" page, but there's no "Select Profile" widget ;-(

@Platform Would it be much effort to provide a way to use an existing Cleanup profile on the Editor Save Actions page?
Re: How to synchronize "Clean Up" and "Save Actions" [message #1864033 is a reply to message #1851435] Tue, 12 March 2024 11:22 Go to previous message
Eclipse UserFriend
I want this too. Or at least some way of defining a profile for the save actions. See the related bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=178429 and my comment at the bottom

There is also some more info on the issue in the other comments by others.
Previous Topic:Coverage clearing button or menu command not found
Next Topic:run configurations main class search button stops working
Goto Forum:
  


Current Time: Fri May 16 18:10:50 EDT 2025

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

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

Back to the top