有人知道一个好办法吗?
So far I have not found a better way than using File>New file and then copying contents from old file to new.
您可能可以在Finder中复制并重新导入,但工作量几乎相同:切换到Finder,复制,导入新文件.
用一个类来实现这一点并不难,但是如果需要基于超类生成10+个类似的类,该怎么做呢.
在Eclipse中, Select 文件,然后将其复制/粘贴到同一文件夹中.在finder中有重复的.
There's a menu Edit > Duplicate. But it's ALWAYS disabled. I tried selecting various files, classes, methods. It's still disabled.