When developing with Phpstorm, if too many files in the project can cause Phpstorm to slow down or even get stuck, especially when node joins our project, because there are so many modules in the Node_modules directory, Phpstorm loading these files will cause Phpstorm to die.
You can directoies the directory properties in the project settings to make the phpstorm work better.
You can divide the directory into 4 types of tests,sources,excluded,resource root.
If you feel the hassle of each configuration, you can save the. you-project-name.iml file in the. Idea directory, overwrite the past with the new project, and provide a directory configuration. Taking Laravel as an example
<?xml version= "1.0" encoding= "UTF-8"? ><module type= "Web_module" version= "4" > <component name= " Newmodulerootmanager "> <content url=" file://$MODULE _dir$ "> <sourcefolder url=" file://$MODULE _dir$/app " Istestsource= "false"/> <sourcefolder url= "file://$MODULE _dir$/tests" istestsource= "true"/> < Excludefolder url= "file://$MODULE _dir$/.idea"/> <excludefolder url= "file://$MODULE _dir$/node_modules"/> </content> <orderentry type= "inheritedjdk"/> <orderentry type= "Sourcefolder" fortests= "false"/> </component></module>
The correct labeling of the directory type allows phpstorm to optimize your project loading and phpstorm to reduce the system resources used by the IDE.
or set the Ignore load directory in the editor
If none of the above is working, then use the Vscode editor.
Webstorm&phpstorm open Large Project card dead solution like Vue-laravel-yii2