I am surprised that IntelliJ 13.1.6 cannot do this.
I tried the solution in this answer , but it displays a displayed dialog box without specifying a file name. Therefore, selecting the same directory causes an error: we cannot create the file because it already exists (obviously, I want to be able to rename it!).
This applies only to files with a class and an object (or several). A.

Is there anything I can do to duplicate the file, or should I switch to explorer and make it there?
source share