| Action | Windows/Linux | macOS | | :--- | :--- | :--- | | | Alt+F12 | ⌥ Option+F12 | | New Terminal Tab | Ctrl+Shift+T | ⌘ Cmd+T | | Close Current Tab | Ctrl+W or Ctrl+F4 | ⌘ Cmd+W | | Switch Between Tabs | Alt+→ (next) / Alt+← (previous) | ⌘ Cmd+⇧Shift+] (next) / ⌘ Cmd+⇧Shift+[ (previous) | | List All Tabs | Alt+↓ | ⌃ Ctrl+⇧Shift+↓ | | Clear Terminal Screen | Ctrl+L | ⌘ Cmd+L |
Select , press your preferred keys, and click OK . 💡 Pro-Tips for Power Users
One of the best features of PhpStorm is that the terminal can automatically open to the directory of the file you are currently editing.
If you're interested, I can also show you how to set up in your terminal to further speed up your workflow. Let me know if that would be helpful! Share public link phpstorm terminal shortcut top
Use Alt + Right/Left Arrow (Windows/Linux) or ⌘ ⇧ ] / ⌘ ⇧ [ (macOS).
Here are some tips and tricks to help you master PhpStorm terminal shortcuts:
Right-click the action you want to change (e.g., Toggle Terminal or Split Vertically ). | Action | Windows/Linux | macOS | |
Beyond just opening the terminal, mastering other shortcuts enhances efficiency:
Record your preferred combination (e.g., Alt + T or ⌘ + T ) and save. Advanced Terminal Integration For even more power, consider these integrated features:
If your cursor is stuck in the terminal and you want to keep the panel open but return to typing code, use the universal "Escape" action: Let me know if that would be helpful
Esc (Note: In some terminal configurations, you may need to map Switch to Editor specifically if Esc is being captured by a CLI tool like Vim). Managing Multiple Terminal Tabs
Interacting with text inside the terminal slightly differs from the standard editor text selection. Windows / Linux Ctrl + C (or Ctrl + Shift + C ) ⌘ C Paste into Terminal Ctrl + V (or Ctrl + Shift + V ) ⌘ V Scroll Page Up Shift + PageUp ⇧ PageUp Scroll Page Down Shift + PageDown ⇧ PageDown Clear Buffer / Screen Ctrl + L (Standard Shell) ⌃ L How to Customize Terminal Shortcuts in PHPStorm
The built-in terminal in JetBrains PHPStorm is a powerhouse for modern web developers. It eliminates the context-switching penalty of jumping between your IDE and external command-line tools. By mastering terminal-focused keyboard shortcuts, you can run tools like Composer, Git, Artisan, npm, and Docker without your fingers ever leaving the home row.