如何创建子包并添加现有文件intellij? [英] How to create a sub-package and add existing files intellij?
本文介绍了如何创建子包并添加现有文件intellij?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目结构是这样的。
I have my project structure something like this.
|--daos
| |
| |--MyDBReader.java
但是我想把它改成这个。
But I want to change it into this one.
daos
|
|--readers
| |
| |--MyDBReader.java
任何人都可以通过 intellij告诉我这样做的优先方式保留所有依赖关系和用法?
Can anyone tell me the preffered way to do that with intellij preserving all dependencies and usages?
推荐答案
实际上更好的答案是:
-
转到IntelliJ中的项目结构子窗口。
Go to the project-structure sub-window in IntelliJ.
创建新包。
只需将文件从旧位置拖放到项目结构子窗口中的新位置 即可。
Just drag and drop the file from the older location to the new location from the project-structure sub-window.
这篇关于如何创建子包并添加现有文件intellij?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文