phpstorm

PhpStorm optimization

Speed increase using OpenGL

PhpStorm can be very slow in large files as its performing so many inspections. One quick and easy way to speed up PhpStorm is to render using OpenGL. Previously in a 5000 line file it would give the ‘eye’ symbol in the top right for a long time before changing to a tick (or red/yellow box). After OpenGL it does this almost immediately.

To enable OpenGL:

Open: path-to-phpstorm\bin\PhpStorm64.exe.vmoptions

Then add these two lines below the others:

-Dawt.useSystemAAFontSettings=lcd 
-Dawt.java2d.opengl=true

Tuning PhpStorm performance by editing custom VM options

Its possible to change *.vmoptions and idea.properties files without editing them in the PhpStorm installation folder.

Follow the steps below:

Step 1:

Run Help - Edit Custom VM Options...

enter image description here

Step 2:

Confirm the creation of the configuration file, if prompted

enter image description here

Step 3:

Add following lines if you want to use OpenGL

# This line could already be there depending on your PHPStorm version
-Dawt.useSystemAAFontSettings=lcd 

-Dawt.java2d.opengl=true

Add the following lines if you want to increase memory allocated to PhpStorm (improves performance in large projects)

# This line could already be there depending on your PHPStorm version
-Xmx750m

enter image description here

Save the file and restart program.

Power Save Mode

If you’re in a hurry and want to quickly get a speed boost PLUS save some power, go into Power Save Mode. It’s in the File menu, bottom-most option in that menu.

File -> Power Save Mode

Note: this will disable some powerful features like syntax highlighting, code analysis, auto-completing things. It will also stop indexing.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow