As stated here one can change the name of a project. However, it only changes the name of the project and it will not change the folder structure.

As an example if your project is called sample1 and it resides ~/user1/development/IdeaProjects/sample1, the folder location won't be changed to ~/user1/development/IdeaProjects/sample2 if one changes the project name to sample2.

推荐答案

It seems that one has to right click on the project (after following the instructions to rename the Project), then choose Refactor -> Move to relocate project to the new location. I didn't find any solution to rename and move a project at once.

Kotlin相关问答推荐

在Kotlin Jetpack中重用下拉菜单

将带大括号和不带大括号的Lambda值赋给@Composable函数

在 Kotlin 中将两个字节转换为 UIn16

Kotlin:调用 CoroutineScope.launch 与在协程内启动之间的区别

使用 StateFlow 时如何移除监听器?

Android Jetpack Compose:在空的 Compose 活动中找不到 OutlinedTextField (Material3)

如何在 Spring Boot 3 中为内部类提供运行时提示

compareBy 如何使用布尔表达式在 kotlin 中工作

异常传播如何在 CoroutineScope.async 上工作?

Dagger 2 ContributesAndroidInjector 为模块提供活动

如何在 IntelliJ 中更改 Kotlin 的this property has a backing field代码编辑器突出显示?

如何从不同的功能发出流量值? Kotlin 协程

Kotlin 枚举中的循环引用

Kotlin 类的调用方法

更新到版本4.10.1/4.10.2后 Gradle 同步失败

封闭 lambda 的隐式参数被shadowed

使用主构造函数时使用Kotlin getter/setter

如何序列化/反序列化Kotlin密封类?

Kotlin类型安全类型别名

尾随 lambda 语法(Kotlin)的目的是什么?