phpstorm cheat sheet
TRANSCRIPT
![Page 1: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/1.jpg)
IDE - PhpStorm
PhpStorm is a paid IDE.
You can use it's trial version or EAP version.
EAP: Early Access Program.
jetbrains.com/phpstorm/
confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
![Page 2: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/2.jpg)
IDE – PhpStormInstallation
Download the tar.gz file.Extract it in to the home directory.Cd into {Extracted directory}/bin/$ sudo ./phpstorm.sh
[In linux .sh files are shell scripts. This is how we execute shell scripts from terminal. Using ./filename.sh ]
![Page 3: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/3.jpg)
IDE – PhpStormIDE Settings
Toggle Sidebar:
→ View
→ Tool Windows
→ Project [ Alt + 1 ]
Word Wrap:
For all files:
File → Settings → Editor → General → Use soft wraps in editor.
For current file:
View → Active Editor → Use soft wraps.
![Page 4: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/4.jpg)
IDE – PhpStormIDE Settings
Remove Breadcrumbs:File → Settings.Search for Breadcrumbs.
[ These tuts are for Ubuntu. In MAC:
PhpStorm → Preferences ]
![Page 5: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/5.jpg)
IDE – PhpStormIDE Settings
Remove Status bar:View → Status bar.
Remove Navigation bar:View → Navigation bar.
Show Terminal:View → Tool Windows → Terminal. [ Alt + F12 ]
![Page 6: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/6.jpg)
IDE – PhpStormIDE Settings
Modify Current Theme:For example changing Font and Font Size -
File→ Settings→ Editor→ Colors & FontsSave the current scheme first then→ FontChange font properties here.
![Page 7: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/7.jpg)
IDE – PhpStormIDE Settings
Choose PhpStorm Themes:→Daylerees.github.io (demos)
→Github.com/daylerees/colour-schemes→Click on jetbrain from file list
→Click on theme name from file list→Click on “Raw” button→Copy raw url.
![Page 8: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/8.jpg)
IDE – PhpStormIDE Settings
Installing PhpStorm Themes:→ cd into ~/ [home directory]
→ ls -a [shows all files including dot files.]→ cd .WebIdeXX
→ ls … → finally cd into: ~/.WebIde90/config/colors$→ wget url [previously copied url]
→ Restart the IDE.
![Page 9: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/9.jpg)
IDE – PhpStormIDE Settings
Search for anything:Help → Find Action [Ctrl + Shift + A]
Let's search and install a plug-in:→ Press Ctrl + Shift + A and search for Plugins
→ Configure Plugins
→ Click on the button Brows Repositories
→ Search for Color
→ Color Ide [Applies background color to all three views.]
→ Install.
![Page 10: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/10.jpg)
IDE – PhpStormUSES
Open a Class:
Navigate → Class (Ctrl + N)
Open a New File:
Navigate → File (Ctrl + shift + N)
Open a Symbol (Function declaration / CSS class etc.):
Navigate → Symbol (Ctrl + Alt + Shift + N)
![Page 11: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/11.jpg)
IDE – PhpStormUSES
Quick Documentation:→ Select the class or method,
→ Press Ctrl + Q
Navigate to the Class Declaration:→ Ctrl + Click on the class name.
![Page 12: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/12.jpg)
IDE – PhpStormUSES
Code Completion:
For example start typing a class name and press Ctrl + Space to complete it.Multiple Choices will be available.
![Page 13: PhpStorm Cheat Sheet](https://reader036.vdocuments.site/reader036/viewer/2022082721/58ec9ebc1a28abac508b46b9/html5/thumbnails/13.jpg)
IDE – PhpStormUSES
Live Templates:To see all available templates:→ Put the cursor on a file.
→ Ctrl + J
To use a template:→ Write the abbreviation + Tab
To Create / Edit / Delete a Live Template:→ File → Settings → Editor → Live Templates.