When I use phpstorm to develop projects recently, when loading a file and running it, no matter how big it is, if the project file has a lot of data, phpstorm can get stuck and freeze. I have adjusted the memory settings, turned off dynamic prompts, and used phpstorm's safe mode, but none of them can solve the card problem. In the meantime, I also tried to give up phpstorm and switch to other IDE development. But they are not as easy to use as phpstorm. There was no way, I couldn't find a solution on Baidu in China, so I had to go out and look for it.
Finally, I saw different answers in a foreign forum. As long as two Java virtual machine parameters are modified, the card problem is completely solved.
The steps are as follows:
1. Find the phpstorm.vmoptions file and open it with Notepad.
2. Add the following two lines of code:
-Dawt.usesystemAAFontSettings=lcd -Dawt.java2d.opengl=true
3. Save and exit.
Thinking:
phpstorm is developed using JAVA. Since the IDE provides the source file keyword rendering function, any editing of the file or the movement of the mouse will trigger the rendering operation. The default JAVA environment of phpstorm does not use the machine's hardware acceleration technology to achieve real-time rendering, so of course the system will freeze. As long as the system uses hardware acceleration by default in the JAVA environment, the problem of occupying too much system resources and causing phpstorm to freeze can be solved.
Now you can use the familiar environment of phpstorm again.
For more articles related to the slow operation of PHP editor PhpStrom, please pay attention to the PHP Chinese website!