Skip to content

Instantly share code, notes, and snippets.

@vanWittlaer
Created September 30, 2021 12:51
Show Gist options
  • Save vanWittlaer/d0dc496e014b741df62f1393198f2db9 to your computer and use it in GitHub Desktop.
Save vanWittlaer/d0dc496e014b741df62f1393198f2db9 to your computer and use it in GitHub Desktop.
# Being stuck by PhpStorm indexing on all CPUs? On Ubuntu, you can limit PhpStorm to using just say 4 of your CPUs by amending
# the Exec directive with 'taskset -a -c 0,1,2,3' in its desktop file (usually located in /usr/share/applications)
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/opt/PhpStorm-212.5080.71/bin/phpstorm.svg
Exec="taskset -a -c 0,1,2,3 /opt/PhpStorm-212.5080.71/bin/phpstorm.sh" %f
Comment=Lightning-smart PHP IDE
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
StartupNotify=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment