"CTRL + SHIFT + o" for import organization not working in STS

I need to remove unused imports in my project. I used to use eclipse, but now I'm working on STS.

In STS, " CTRL+ SHIFT+ o" does not work to remove unused imports.

+4
source share
1 answer

This is a bug in the Spring IDE, I had it in the past.

  • Go to Window → Settings → General → Keys
  • Binding order
  • Search / Scroll to Links Ctrl + Shift + O
  • Cancel all commands with Ctrl + Shift + O binding, except for the Organize Imports command
  • Set when to edit Java source
  • Apply, OK, and you should be good to go

General -> Keys

+3

Source: https://habr.com/ru/post/1682832/


All Articles