Intellij:如何复制/粘贴文件以便复制它? [英] Intellij: How to copy/paste a file in order to duplicate it?

查看:151
本文介绍了Intellij:如何复制/粘贴文件以便复制它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎找不到办法做到这一点?我在某个文件夹中有一个名为X的文件,我想在同一目录中创建具有相同内容的Y.我在eclipse中的做法是选择文件和^ C,^ P,eclipse提示输入新名称。

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 select the file and ^C, ^P, eclipse prompts for the new name.

更新

显然只有在编译单元包含多个单元时才会出现此问题类型。

Apparently this problem only occurs if compilation unit contains more than one type.

推荐答案

选项+拖动原始文件。系统将提示您输入新名称。

Option + drag the original file. You will be prompted for a new name.

也适用于课程:

这篇关于Intellij:如何复制/粘贴文件以便复制它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆