Hi,
The first release candidate build for Apache NetBeans 25 is available (links
below).
Changes since NetBeans 24 can be seen at
https://github.com/apache/netbeans/releases/tag/25-rc1
Please help with testing, and file issues in GitHub as necessary -
https://github.com/apache/netbeans/issues
I don't know about automatic file save.
that said -- I don't use this --but there is
'Tools->Options->Editor->On Save. Visit that tab there is a check box
called Organize Imports.
Maybe that does it? (mine is off; never used this)
HTH
On Fri, Jan 24, 2025 at 9:02 AM Bradley Willcot
Hi there.
Try this: Menus -> Source/Organise Imports.
Or try this macro that I use:
"fix-imports organise-imports" <- Ctrl+Alt+M I
without the quotes.
And here is the main one I use:
"fix-imports organize-imports organize-members format" <- Ctrl+Alt+Shift+F
again without the quotes.
The keys ri
Thank you for your help. But can it be done automatically on file save? I use
checkstyle and half of the problems are about not used imports.
Best regards, CR
On 1/24/25 14:57, Fred Welland wrote:
my nb 24 -- puts a icon (warning ! ) on the left margin of the edit buffer of a
java file contai
I found it. Options -> Editor -> On Save -> Remove Unused imports.
On 1/24/25 14:57, Fred Welland wrote:
my nb 24 -- puts a icon (warning ! ) on the left margin of the edit buffer of a
java file containing un-needed imports. Right click and the pop-up menu has
'remove' or 'remove all un-used
my nb 24 -- puts a icon (warning ! ) on the left margin of the edit buffer
of a java file containing un-needed imports. Right click and the pop-up
menu has 'remove' or 'remove all un-used'.
This is, file by file. One may have to enable this, if not default.
Maybe checkout Tools->Options->E
Hello everyone,
I use NB 24. Could anyone say if it possible to remove unused imports on file
save? If not how to do it manually?
Best regards, CR
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For addition