Phpstorm Terminal Shortcut Top ✦ Secure & Complete
To jump to the top of the editor in PhpStorm, use the shortcut Ctrl + PgUp (Windows/Linux) or Command + Home / Fn + Up (macOS).
If you are looking for shortcuts specifically for the Terminal tool window, here are the most common commands: Terminal Management
Open/Close Terminal: Alt + F12 (Windows/Linux) or Option + F12 (macOS). Focus Editor from Terminal: Press Esc.
New Terminal Tab: Ctrl + Shift + T (while the terminal is focused). Close Current Tab: Ctrl + Shift + W. Navigation Within the Terminal
Scroll to Top: Ctrl + Home (Windows/Linux) or Command + Up (macOS).
Scroll to Bottom: Ctrl + End (Windows/Linux) or Command + Down (macOS).
Next/Previous Tab: Alt + Right/Left (Windows/Linux) or Command + Shift + [ / ] (macOS). Customizing Shortcuts
If you want to change these, go to the Keymap Settings by pressing Ctrl + Alt + S, then search for "Terminal". Terminal | PhpStorm Documentation - JetBrains
These are the default shortcuts for the most common terminal actions across different operating systems. Windows / Linux Open/Close Terminal Start New Session (Tab) Close Current Tab Switch Between Tabs Clear Terminal Screen Return to Editor Advanced Terminal Navigation Split Terminal phpstorm terminal shortcut top
: To run multiple sessions side-by-side, right-click a tab and select Split Right Split Down Quick Tab List : If you have many tabs open, press Down Arrow to see a full list of all active terminal sessions. Open File from Terminal
on Mac) and click a filename in the terminal output to open that file directly in the editor. Customizing Your Shortcuts If the default
is difficult to reach, you can set a custom keybinding (like Preferences Navigate to Search for in the search bar.
Right-click the "Terminal" entry under "Tool Windows" and select Add Keyboard Shortcut Pro Tip: Find Action If you forget a shortcut, press (Search Everywhere) or
on Mac) and type "Terminal" to quickly find the tool window or related actions. set up specific shells (like Zsh or PowerShell) within your PhpStorm terminal? Terminal | PhpStorm Documentation - JetBrains
Here are some content about PhpStorm terminal shortcuts:
Introduction
As a developer, you likely spend a significant amount of time in your terminal, executing commands, navigating through directories, and managing your projects. PhpStorm, a popular integrated development environment (IDE) for PHP, offers a built-in terminal that allows you to perform various tasks without leaving the IDE. To boost your productivity, PhpStorm provides several terminal shortcuts that can save you time and effort. In this article, we'll explore the top PhpStorm terminal shortcuts to help you work more efficiently. To jump to the top of the editor
Top PhpStorm Terminal Shortcuts
- Open Terminal:
Alt + F12(Windows/Linux) orCmd + Alt + F12(macOS) Quickly open the terminal in PhpStorm using this shortcut. - Navigate to Previous Directory:
cd ~Use the tilde (~) symbol to navigate to your home directory. - Navigate to Project Root:
cd ../../..Presscd ../../..to quickly navigate to the project root directory. - List Files and Directories:
ls -lUsels -lto list files and directories in a detailed format. - Change Directory:
cd <directory_name>Quickly navigate to a specific directory usingcdfollowed by the directory name. - Make a New Directory:
mkdir <directory_name>Create a new directory usingmkdirfollowed by the directory name. - Delete a File or Directory:
rm <file_name>orrm -rf <directory_name>Usermto delete a file or directory. Be cautious when usingrm -rf, as it permanently deletes a directory and its contents. - Copy a File or Directory:
cp <file_name> <destination_directory>Copy a file or directory usingcp. - Move a File or Directory:
mv <file_name> <destination_directory>Move a file or directory usingmv. - Search for a File:
find . -name <file_name>Usefindto search for a file in the current directory and its subdirectories.
PhpStorm-specific Terminal Shortcuts
- Run a PhpStorm Command:
pstorm <command>Usepstormfollowed by a command to execute a PhpStorm command, such aspstorm opento open a file. - Open a File in PhpStorm:
pstorm open <file_name>Quickly open a file in PhpStorm usingpstorm open. - Open a Terminal in the Current Directory:
pstorm terminalOpen a new terminal in the current directory usingpstorm terminal.
Tips and Tricks
- Use tab completion to quickly complete file and directory names.
- Press
Ctrl + A(Windows/Linux) orCmd + A(macOS) to move the cursor to the beginning of the command line. - Press
Ctrl + E(Windows/Linux) orCmd + E(macOS) to move the cursor to the end of the command line.
By mastering these PhpStorm terminal shortcuts, you'll be able to navigate and manage your projects more efficiently, saving you time and increasing your productivity.
Default Shortcuts
| Action | Windows / Linux | macOS |
|--------|----------------|-------|
| Move cursor to beginning of line (within current command) | Home | ⌘ + ← (Command + Left Arrow) |
| Move cursor to end of line | End | ⌘ + → (Command + Right Arrow) |
| Clear terminal (stays at top) | Ctrl + L | ⌘ + K |
💡 Note:
Home/Endkeys work in PHPStorm’s terminal the same way they do in a standard command line (bash, zsh, etc.).
3. Inside the Terminal (Shell-Level Shortcuts)
These are not PhpStorm-specific but work because the terminal emulator passes them to the shell. They are listed for completeness as "top" productivity boosters.
| Action | Shortcut (bash/zsh) |
|--------|----------------------|
| Clear screen | Ctrl+L |
| Interrupt process | Ctrl+C |
| Search command history | Ctrl+R |
| Move cursor word-by-word | Alt+B / Alt+F (or Esc+B / Esc+F on macOS) | Open Terminal : Alt + F12 (Windows/Linux) or
4. Advanced PhpStorm Terminal Shortcuts
| Action | Windows / Linux | macOS |
|--------|----------------|-------|
| Run command in terminal from editor (select text, then) | Ctrl+Enter | Cmd+Enter |
| Open terminal at selected file's directory | Ctrl+Alt+T (via Open in Terminal action in Project view) | Cmd+Option+T |
| Rename terminal session | Double-click tab → type, or via context menu (no default kb) | Same |
PHPStorm Terminal Shortcut: Jump to Top (Beginning of Line)
When you're working inside PHPStorm's built-in terminal, you don’t need the mouse to jump to the start of a long command. Use these shortcuts depending on your operating system.
1. Opening & Managing the Terminal
| Shortcut (Windows/Linux) | Shortcut (macOS) | Action |
|--------------------------|------------------|--------|
| Alt + F12 | ⌥ + F12 | Open/close terminal tool window |
| Ctrl + Shift + T | ⌘ + ⇧ + T | Open a new terminal session tab |
| Ctrl + Shift + W | ⌘ + ⇧ + W | Close current terminal tab |
| Alt + Right/Left | ⌘ + ⇧ + [ or ] | Switch between terminal tabs |
| Shift + Enter | ⇧ + ⏎ | Execute command and keep terminal focused (customizable) |
Pro tip: Pin your terminal with Alt + F12 toggle — it’s the fastest way to jump in and out.
2. Moving the Cursor (Shell Navigation)
If you want to move your active command line cursor to the beginning of the line or the start of the history:
- Move Cursor to Start of Line:
- Windows/Linux: Home
- macOS: Ctrl + A
- Jump to Top of History (First Command):
- This depends on your shell (Bash/Zsh), but typically: Ctrl + Home (or Page Up in some configurations).
8. Ctrl + Shift + C (Windows/Linux) / Cmd + C (macOS)
What it does: Copies selected text from the terminal.
Note: This only works when text is highlighted. The default terminal behavior for Ctrl+C (sending SIGINT to stop a process) remains intact when nothing is selected.