Minegolfer
Minegolfer

Reputation: 374

File doesn't belong to this project - PhpStorm

UPDATE

Asked the question on the PhpStorm site.


Staps 1 by 1[1 When I press Ctr + Shift + N to navigate in my project files it can only find some off my files in the directory. So most off the files do not belong to the project. How to make it so my directory with all the files becomes 1 project again?

Also it looks like some off the files are on C:\Users\Username\Projects\Website and other files are on Z:\Projects\Website

It's a short question I hope I explained it right, and if I need to give more information about something ask/tell me. (also I don't know which tags I have to use)

Does not belong in this project picture

Upvotes: 1

Views: 4027

Answers (2)

Floydovich
Floydovich

Reputation: 106

If someone is experiencing this problem with the PhpStorm 2021 version, try these steps:

  1. Close the IDE.
  2. Go the project directory and delete .idea folder.
  3. Restart the IDE.

For me, the IDE created a new .idea folder and recognized all files as the part of the project.

Upvotes: 6

Rens
Rens

Reputation: 518

Did you try reopening the project? That sometimes does solve my problems.

Upvotes: 0

Related Questions