Refactor / Rename Module No Longer Allows Rename of Module Directory.

已回答

I recently upgraded to the 2018.1 version of IntelliJ IDEA and am very happy with it, thank you.

I do have one question though: How can I rename a module directory within IntelliJ? In older versions of IntelliJ you could right click the module and choose the "Refactor / Rename" option; it would then give you a dialogue allowing you to choose to rename the module within IntelliJ or rename the directory of the module. This dialogue has disappeared in the new version and you can only change the module name.

I'm sure that I am missing something obvious but could someone tell me how to rename the directory and not just the module?

My apologies if this has been asked before but I've searched the forums and documentation and can't find any reference to this change.

Thank you.

3

On version 2018.3.3 183.5153.38 released on January 9, 2019, I have the exact same issue.


It is impossible to rename a module without renaming the module too. So all my modules end up being named "java" since my architecture respect default gradle architecture.

0

@Zangdaarr Mortpartout you issue sounds different, but I'm not sure I understand it. Could you please elaborate (steps to reproduce, the expected/actual result)?

Note that in a Gradle project the module name by default corresponds to a directory name. If you want to change that use settings.gradle file https://stackoverflow.com/a/20128717/2000323.

0

请先登录再写评论。