PhpStorm hides directories in Project window

前端 未结 13 1050
再見小時候
再見小時候 2021-02-06 21:38

I\'m using PhpStorm 6.0.3, and it doesn\'t show any directories in the Project Tool Window. They were there just a minute ago but I managed to make them disappear by clicking or

相关标签:
13条回答
  • 2021-02-06 22:19

    So, it's now a couple of months later and made the same mistake. Only this time I made 1 directory disappear and was accidentally pointed in the right direction by PhpStorm itself. I excluded the directory from the project, so it didn't show up anymore. Apparently exluded dirs are not saved in the project settings since re-creating the project didn't help.

    Here is how I found it back: File > Settings > Project settings > Directories There I saw my dir flagged with a red icon, meaning excluded. Just right-click it and click 'exclude' once again. Tadaaaa it's back.

    I can't believe I've overlooked it so many times...

    0 讨论(0)
  • 2021-02-06 22:19

    I just solved a similar problem with Webstorm (Windows version 10.0.1) in a Cordova project. I created a new directory within the www folder, did not add any files and closed Webstorm. When I restarted Webstorm the next day, the new folder was invisible but existed as Webstorm refused to create a new one with an " ... already exists" error message and the file was listed as visible in the directories settings.

    I solved the problem this way: Closed Webstorm -> Added a file to the empty folder with the Windows file browser -> Opened Web Storm -> The folder and the file was shown.

    0 讨论(0)
  • 2021-02-06 22:20

    Go to PhpStorm setting(Ctrl+Alt+s) type and select 'file types' not 'other file types'!(Editor > File Types) in 'Ignore files and folders' remove all extension you need(i remove all!).

    Apply it and you can see all your files in PhpStorm

    0 讨论(0)
  • 2021-02-06 22:21

    You can delete .idea/workspace.xml file.

    0 讨论(0)
  • 2021-02-06 22:21

    The below methods showed they were successful but still failed to show some directories which were empty or had a few files

    • Synchronize the directory
    • No directories were excluded in the Directory tab.

    What worked for me was closing the project having the issue and reopening it another project window and choosing open in the current window

    0 讨论(0)
  • 2021-02-06 22:23

    File -> Settings -> Directories -> + Add content root

    Happy Coding!

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