Recently, when using the Phpstorm development project, just load the JavaScript file, no matter how big, if the project file data more, can let Phpstorm card to the panic. Which adjusted the memory settings, turned off the dynamic prompt, the use of Phpstorm security mode, can not solve the card problem. In the middle also tried to abandon Phpstorm, switch to other IDE development. But there is no phpstorm so good. No way, in the domestic Baidu can not find a solution, can only go out to find.
Finally, in a foreign forum, see a different answer. As long as the two Java Virtual machine parameters are modified, the problem of the card is completely solved.
The procedure is as follows:
Locate the Phpstorm.vmoptions file, and open it using Notepad.
Add the following two lines of code:
-dawt.usesystemaaf-dawt.java2d.opengl=true
Save exit.
Thinking:
Phpstorm is developed using Java. Because the IDE provides the source file keyword rendering capability, any editing or moving of the mouse to the file will trigger the rendering operation. The Phpstorm default Java environment does not use the hardware acceleration technology of the machine to achieve real-time rendering, so the system will certainly get stuck. And as long as in the Java environment to let the system by default hardware acceleration, you can solve the occupation of the system resources too large, let Phpstorm card problem.
Now you can use the familiar environment back to Phpstorm.
Note:
The technology used by the project is: Yii2 + extjs 6.0.1 + MySQL
The above is introduced to solve the problem of Phpstorm running very card! , including the content of the phpstorm, I hope to be interested in PHP tutorial friends helpful.