且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IntelliJ IDEA中重命名项目

更新时间:2023-09-17 22:28:10

您可以更改项目名称,这是最近项目列表中显示的名称,如下所示:

You can change the project name, which is the name that is shown in the recent projects list, like so:

转到项目结构 Ctrl + Alt + Shift + S )→项目设置/项目→项目名称:

Go to Project Structure (Ctrl+Alt+Shift+S) → Project Settings / Project → Project name:

请注意,这不应与根模块的名称或文件夹上的文件夹混淆。文件系统,可能相似也可能不相似。

Please note that this is not to be confused with name of the root module, or folder on the file system, which may or may not be similar.

编辑

请尝试进入项目中的 .idea 文件夹,创建一个名为 .name 的文件,然后输入项目名称。单行。

Please try going into your .idea folder in the project, create a file named .name and enter a project name on a single line.

例如

my-new-project-name

然后重新启动IntelliJ。

Then restart IntelliJ.

这假设您在 .idea (而不是基于文件,带.iws文件等)

This presumes you are using a folder-based Idea project in .idea (rather than file based, with .iws file etc)