How to delete projects in Intellij IDEA 14?

后端 未结 4 1639
小鲜肉
小鲜肉 2021-01-31 13:59

I only found how to delete projects in older versions of IDEA but still don\'t see the button in my IDEA 14. Did the Jetbrains guys implement this feature or do I still have to

相关标签:
4条回答
  • 2021-01-31 14:23

    You will have to manually delete from the project explorer (your local machine hard drive), then delete the project in IntelliJ when it asks to re-open recent projects.

    0 讨论(0)
  • 2021-01-31 14:29

    1. Choose project, right click, in context menu, choose Show in Explorer (on Mac, select Reveal in Finder).

    enter image description here

    2. Choose menu File \ Close Project

    enter image description here

    3. In Windows Explorer, press Del or Shift+Del for permanent delete.

    4. At IntelliJ IDEA startup windows, hover cursor on old project name (what has been deleted) press Del for delelte.

    enter image description here

    0 讨论(0)
  • 2021-01-31 14:34

    Deleting and Recreating a project with same name is tricky. If you try to follow above suggested steps and try to create a project with same name as the one you just deleted, you will run into error like

    'C:/xxxxxx/pom.xml' already exists in VFS

    Here is what I found would work.

    1. Remove module
    2. File -> Invalidate Cache (at this point the Intelli IDEA wants to restart)
    3. Close project
    4. Delete the folder form system explorer.
    5. Now you can create a project with same name as before.
    0 讨论(0)
  • 2021-01-31 14:39

    In my strange case, Intellij remembers forever about my project even if I delete .iml... Thus I did the following:

    1. Close project. Delete the .iml file.
    2. Rename my project directory (say my_proj) to my_proj_backup.
    3. (Possibly not needed) Open my_proj_backup in Intellij and close.
    4. Create an empty directory called my_proj, and open it in Intellij. Then close it.
    5. Remove the my_proj and move my_proj_backup back to my_proj. Then open my_proj in Intellij.

    Then it happily forgot the old my_proj :)

    0 讨论(0)
提交回复
热议问题