在 IntelliJ IDEA 中重命名项目 [英] Renaming a project in IntelliJ IDEA

查看:25
本文介绍了在 IntelliJ IDEA 中重命名项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些项目,其中包含项目的目录称为代码".

I have some projects where the directory containing the project is called "Code".

当我打开 IDEA 时,在我最近的项目列表中,我看到的只有那个名字.

When I open IDEA, in my recent projects list all I see is that name.

有什么方法可以在设置中更改此设置吗?

Is there any method to change this in settings ?

我尝试转到文件->项目结构->项目,我在 IntelliJ IDEA 13 中找不到项目名称选项.

I tried going to File->Project Structure->Project, I couldn't find the Project Name option in IntelliJ IDEA 13.

我在我的项目设置中看到了这一点.

I see this in my project settings.

推荐答案

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

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 中使用基于文件夹的 Idea 项目(而不是基于文件,带有 .iws 文件等)

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

这篇关于在 IntelliJ IDEA 中重命名项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆