如此处所述,可以更改项目的名称。然而,更改项目名称只会更改项目的名称,不会更改文件夹结构。
例如,如果您的项目名为sample1,位于~/user1/development/IdeaProjects/sample1中,则更改项目名称为sample2后,文件夹位置不会更改为~/user1/development/IdeaProjects/sample2。
如此处所述,可以更改项目的名称。然而,更改项目名称只会更改项目的名称,不会更改文件夹结构。
例如,如果您的项目名为sample1,位于~/user1/development/IdeaProjects/sample1中,则更改项目名称为sample2后,文件夹位置不会更改为~/user1/development/IdeaProjects/sample2。
点击您想要移动的项目文件,然后按F6键
Close IntelliJ
Rename the folder in Explorer (Windows) / Finder
(OSX)
Open IntelliJ Import Project from Dialog, or File -> Import
Project
Select the folder with the new name
further additional steps might be required if you see your module named
as new_modulename[parent module/old module name],
then update
settings.gradle with new name and reimport
.idea/workspace.xml
。 - Urhixidur