Check official guide to install: https://www.jetbrains.com/phpstorm/
- Font ligatures: Setting -> Editor -> Font -> Enabled ligatures
- 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.
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
Use Live Templates to create a custom snippets such as loops, conditions, print statements,…
- Go to
Settings -> Editors -> Live Templates
- Click
+
button to add a new live template - Give your template a name and a description
- 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
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
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)