Is there a way to choose between regular import and static import?

已回答

As the following screenshot shows, when I type the enum name, it only allows me to do regular import. Is there a way to choose between regular import and static import when I type the keyword? I would prefer being asked every time instead of always using static imports or always using regular imports.

 

0

Hello, 

You may put the cursor on NORTH, press Alt+Enter and choose to add the static import instead:

0

This works. Thank you!

0

请先登录再写评论。