Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

How to make IDEA refactor a MyClass.staticMethod to import static line?

$
0
0

Hi there,

 

Would anyone knows what's the equavalent of Eclipse's "Ctrl+Shift+M" in IntelliJ IDEA?

 

Basically in Eclipse, I can press "Ctrl+Shift+M" on a line like "MyClass.staticMethod" after highlighting "staticMethod", and it will auto insert the "import static MyClass.assertThat" to the top of the source, and then remove the "MyClass." prefix from the line.

 

Thanks,

Zemian


Viewing all articles
Browse latest Browse all 5661

Trending Articles