PHP editor PhpStrom is slow

高洛峰
Release: 2023-03-06 06:36:01
Original
1619 people have browsed it

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
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!