99

I recently upgraded from PhpStorm 6 to PhpStorm 7. Delighted to see all the improvements, but it runs awfully slow on my low-powered netbook. The delay between typing and seeing text appear is often 5-6 seconds and gets worse as line count increases. It is unusable at this stage.

How can I improve the general IDE speed and responsiveness?

8 Answers 8

190

Edit 2017: You may first want to try experimenting with allocating PhpStorm some more RAM if available. Do this by

  1. Going to Help -> Edit Custom VM Options
  2. Change -Xms and -Xmx to be something reasonable for your hardware. I have -Xms512m and -Xmx2048m on an 8GB RAM laptop.
  3. Restart PhpStorm.
  4. If you want to see how much RAM PhpStorm is currently using, you can go to File -> Settings and search for and enable show memory indicator.

Original answer: I made some changes to increase the responsiveness of the IDE. I'm sure there are more things one could do, but I found these to improve the performance to well within usable margins. From most effective to least:

  1. Disable language injections: File -> Settings -> Language injections. Untick as many boxes as you're comfortable with. HTML was the real killer for me.
  2. Disable inspections: File -> Settings -> Inspections. Untick as many as you don't need.
  3. Disable unused plugins: File -> Settings -> Plugins. Untick unused.

These changes brought down both the startup time and significantly increased responsiveness of the IDE in general.

5
  • 1
    For anyone who activates show memory indicator and sees no change, that feature displays in the status bar. jetbrains.com/help/phpstorm/status-bar.html You may need to activate this in View > Status Bar Apr 15, 2018 at 18:10
  • When i set -Xms1024m, phpstorm64.exe stopped working. Even running from command line didn't help nor showed any errors.
    – Danon
    Sep 16, 2018 at 12:23
  • How you are calculating the Xms and Xmx value - Any specific logic please ? Apr 3, 2019 at 19:42
  • 1
    Thanks, good hint disabling the intentions, I'll keep them all off to see which differences could make compared to "Power Safe Mode". Inspections are somehow necessary.
    – guido
    Nov 4, 2019 at 19:14
  • PHP Storm is REALLY a memory eater. do not use it as an IDE
    – Alex
    Aug 25, 2023 at 13:44
117

Add these to your phpstorm.exe.vmoptions or phpstorm64.exe.vmoptions file, at the bottom:

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

Solid speedup to the point that the editor is now actually usable.

I will for the life of me just never understand why people create editors in Java.

17
  • 7
    Good god, thank you so much. This made a HUGE improvement to scrolling in the editor.
    – Seer
    Feb 9, 2015 at 21:00
  • 6
    Tried a lot of things.. this was the only one that worked for me, enormous improvement in scrolling speed
    – bruchowski
    Apr 14, 2015 at 17:06
  • 7
    Lifesaver :-) "I will for the life of me just never understand why people create editors in Java." - me neither. I have actually searched long for any good Php IDEs without Java
    – Jan Sverre
    Jun 30, 2015 at 18:56
  • 12
    What does this even do?
    – JordyvD
    Feb 24, 2016 at 13:38
  • 29
    Note that you can add these from within the IDE. Go to Help -> Edit Custom VB Options...
    – voidstate
    Sep 19, 2016 at 8:50
26

If you need to speed up PhpStorm right away, turn on Power Save mode. (File > Power Save Mode or using "Hector the Inspector" icon in the IDE status bar). This mode turns off on-the-fly code inspections This way you can finish what you have started, and later decide what code inspections to deactivate.

1
  • 4
    It simply disables the code inspections, hence freeing CPU resources.
    – Shumoapp
    Sep 12, 2016 at 10:31
5

OUTDATED IF YOU USE A VERSION MORE RECENT THAN 2017.1 :

The most effective way to speed up new phpstorm version is an experimental feature that is going to be shipped by default in phpstorm 2017.1. Until that you can activate it on jetbrains products (webstorm, phpstorm etc.)

Click on Help => Edit custom properties
Add editor.zero.latency.typing=true
Close and open again the application.

For me the change typing is not laggy anymore. Other tricks didn't helped me or not in a noticeable way.

0
3

Try removing unnecessary files from your project. I had 3k+ *.html log files inside my project and that slowed down typing terribly when the 'Project' tab was open. (Hiding the project tab or turning off the PHP Plugin does also speeds up PHPStorm, but obviously those are not viable trade-offs.) (I'm using PHPStorm 2016)

2

In my case, PhpStorm wasn't slow at all - a bug in my monitor driver introduced severe lag, and it just happened that I dedicated that monitor to PhpStorm. If you've read this far, try PhpStorm on a different monitor, it would've saved me a lot of time.

2

It is possible that it will help to increase the maximum memory allocation for PhpStorm beyond its default.

For mine, it was capped at 2GB. I know you asked about a windows machine, but for mac users reading this, you can change this by opening PhpStorm without opening a project. Then hit Configure > Edit Custom Properties and change the xmx value to a higher limit.

1
  • This is already mentioned in more detail in the accepted answer.
    – Ian Dunn
    May 16, 2022 at 20:44
2

Try to exclude the C:\Program Files\JetBrains\PhpStorm 2020.1\plugins\ folder to the windows firewall exclude directories, that will make the phpstorm run faster and indexing will be quick.
Windows firewall thinks that malicious software has been installed with lot of jar files. This solution has worked for me. But I have excluded my project laravel folder too

Possible Solutions

  • Use and older version of phpstorm that your machine fully supports
  • Disable the unwanted plugins
  • Disable the unwanted inspections and intentions
  • Disable the unwanted browser support by pressing ctrl + alt + s then Tools > Web Browsers >

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.