Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Alt+Enter dialog does not list "Create Test"

When I press Alt + Enter on a class name in IntelliJ (version 2017.2 on a Windows 10 machine) the Create Testoption is not listed. What can I do to get it there?

My window looks like enter image description here

And i was expecting something like enter image description here It comes from the IntelliJ help page for creating tests.

Is there an option to add the Create Test dialog to the menu?

like image 675
So S Avatar asked Jul 29 '17 11:07

So S


2 Answers

Default is Ctrl + Shift + T

or you can change it by entering the keymap menu, Ctrl + Alt + S to open up the settings, then keymap...

enter image description here

like image 103
Panayiotis Poularakis Avatar answered Nov 14 '22 23:11

Panayiotis Poularakis


To enable this option, go to IDEA Settings -> Editor -> Intentions -> Java -> Declaration and select checkbox Create Test. Search in top left corner can help.

IntellJ IDEA setting create test

like image 45
Roman Bukin Avatar answered Nov 14 '22 22:11

Roman Bukin