How to duplicate Scala class in the same directory

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.

enter image description here

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

+5
source share

Source: https://habr.com/ru/post/1208182/


All Articles