Intellij: How to copy/paste a file in order to duplicate it?

前端 未结 5 1032
孤独总比滥情好
孤独总比滥情好 2021-02-12 10:58

I can not seem to find a way to do this? I have a file named X in some folder, I want to create Y with the same contents in the same directory. The way I do in eclipse is to sel

5条回答
  •  北海茫月
    2021-02-12 11:14

    As for a keyboard only solution to duplicate a file in IntelliJ:

    On Linux:

    Press Alt+Home to activate the navigation bar, then either press F5, or press Ctrl+C to copy the file and then press Ctrl+V to paste it, a dialog will appear to name your new file.

    On Mac:

    Press Cmd+Up to activate the navigation bar, then either press F5, or press Cmd+C to copy the file and then press Cmd+V to paste it, a dialog will appear to name your new file.

提交回复
热议问题