Take the 2-minute tour ×

In Eclipse, when you type a method or declare a variable and the type is an unknown type, the Eclipse tooltip will let you at a click of a button create that type and place it in whatever package (or even a different project, aka module in intellij).

Is there such functionality in IntelliJ?


share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I'm not quite sure how it works in Eclipse but in Intellij, it is like this: when you write class/varibale/field/constant name which you don't have and hit alt+enter, you will see like this popup: enter image description here, select 'Create Class YourClassName'

And then select the destination for that class: enter image description here

share|improve this answer
Thanks! That's what I was looking for. –  user1902183 Oct 16 '13 at 14:46
add comment

Your Answer


