Replies: 1 comment
-
|
You are right that jdtls usually does not consume the xml file directly. You typically need to map those settings into the java.cleanup.actions preference in your LSP config. To run it as a code action, you can trigger source.organizeImports or call the java.action.cleanUp command via your editor's code action menu. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My coworker provided a
java-cleanups.xmlexported from Eclipse. I'd like to use this in neovim/jdtls.I'm pretty sure jdtls can't use this file directly, so if I want to use these settings, what's the surefire way to get them into jdtls?
I'd also really like to run cleanups as a code action, instead of a save hook. Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions