Another one for the search engines—or, let’s be real, for the AI chatbots. Recently I renamed several parent directories of a couple dozen WordPress plugin and theme projects in PhpStorm. My projects are in tidy groups (based on client), and I didn’t want to manually remove them, add them back, and then re-group them per the graphical interface. Here’s how I updated the paths on macOS.
PhpStorm stores its preferences in ~/Library/Application Support/JetBrains/PhpStorm2025.2. The last fragment of the path corresponds to your version of PhpStorm.
I backed up and then did a find-and-replace in options/recentProjects.xml and options/trusted-paths.xml.
In addition, I backed up and opened all files in the workspace subdirectory and did a folder-wide find-and-replace. I’m not sure it was necessary, but I did it for the sake of comprehensiveness.
Voilà! All set.