Installation
Check official guide to install: https://www.jetbrains.com/phpstorm/
Settings
Fonts
- Font ligatures: Setting -> Editor -> Font -> Enabled ligatures
Debuging
- Install Xdebug
- Settings -> PHP -> Debug
- Settings -> PHP -> Server
- Enabled Debug Mode P/S: If you’re using Docker. You need to setup mapping path firstly.
Keyboards Shortcut
Tips
List keyboard shortcut that I usually use. If you want more please check on official guide: https://www.jetbrains.com/help/phpstorm/mastering-keyboard-shortcuts.html
Plugins
- Codeium: Autocomplete code from AI
- GitToolBox: Extends Git Integration with additional features
- Rainbow Brackets: Highlight various types bracket (round, squiggly, square, angle)
- Magento PhpStorm: A better plugins help developer work with Magento 2
Indexing Options
Limit CPU Usage
By default, PHPStorm allows full CPU usage (100%). Therefore the CPU is overloaded
- For indexing only Go to: Help -> Edit Custom Properties
- For all (Include Search Files,…) Go to: Help → Edit Custom VM Options
Directories Exclude and Ignore Files
To improve performance, please exclude and ignore some directories and files that don’t use to scan & index (Such as log file, symlink,…)
- Directories exclude: File → Setting → Directories → Select unused folder to exclude
- Ignore files: File → setting → Editor → File Types → Ignore Files and Folder → Add a new record P/S: If you have multiple project with the same platform. You can use shared indexes for these one Go to: File → Setting → Tools → Shared Indexes → Enable “Wait for shared indexes” (Updated: From Version PhpStorm 2023.3.1 it has been changed PHP Composer Packaged → Download Automatically)