在项目之间复制源代码时,防止eclipse自动导入包 [英] Prevent eclipse from auto import packages when copying source code between projects
本文介绍了在项目之间复制源代码时,防止eclipse自动导入包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将源代码从一个项目复制到另一个项目时,是否可以防止eclipse自动导入任何模块。我只想复制源代码,然后重命名所有的特殊类,我实际上并不想使用其他项目中的类。
Is it possible to prevent eclipse from automatically improrting any modules when I copy source code from one project to another. I just want to copy the source code and then rename all the specic classes, I don't actually want to use the classes from the other project.
推荐答案
在首选项窗口(菜单: Windows
- 首选项
)中输入粘贴到搜索字段(左上角)。
In the preferences window (menu: Windows
- Preferences
) enter "paste" into the search field (top left).
应该找到 Java
- 编辑器
- 打字
It should find Java
- Editor
- Typing
取消选择<$ c $中的更新导入
c>粘贴块。
Uncheck the Update imports
in the When pasting
block.
这篇关于在项目之间复制源代码时,防止eclipse自动导入包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文