JIYIK CN >

Current Location:Home > Learning > OPERATING SYSTEM >

PHPStorm shortcut keys for Win/Linux/Mac

Author:JIYIK Last Updated:2025/04/07 Views:

edit

Win / Linux Mac Notes Frequency of use
Ctrl + Space ⌃Space Code auto-completion (usually conflicts with input method) ★☆☆☆☆
Ctrl + Shift + Enter ⌘ ⇧ ↩ Intelligent code completion (such as: if ()) ★☆☆☆☆
Ctrl + P ⌘P Method parameter hints, showing default parameters ★☆☆☆☆
Ctrl + Q ⌃J Show commented code ★☆☆☆☆
Ctrl + mouse over code ⌘+mouse over code View a brief function introduction ★★★☆☆
Ctrl + F1 ⌘F1 Displays the description of the error or warning message (need to put the cursor at the error or warning position) ★☆☆☆☆
Alt + Insert ⌘N,⌃↩,⌃N Generate code snippets (including function or class comments, copyright information, constructors, abstract methods, etc.) ★★★★☆
Ctrl + O ⌃O Insert the method that overrides the parent class ★☆☆☆☆
Ctrl + I ⌃I Implementing abstract methods ★☆☆☆☆
Ctrl + Alt + T ⌘⌥T Put the selected code in if..else.., for, foreach, or in a function, or add a regional explanation for the selected code block (you can fold the code, and only show the explanation after folding, which is convenient for code management) ★☆☆☆☆
Ctrl + / ⌘/ Add comments by adding "//" ★★★★☆
Ctrl + Shift + / ⌘⌥/ Add comments by adding “/**/” ★★★★☆
Ctrl + W ⌥↑ Incrementally select the current block ★★☆☆☆
Ctrl + Shift + W ⌥↓ Corresponds to Ctrl + W, reduces the selected range ★★☆☆☆
Alt + Q ⌃⇧Q Displays the header containing the tag at the cursor position. ★☆☆☆☆
Alt + Enter ⌥↩ Show Intention Action ★★☆☆☆
Ctrl + Alt + L ⌘⌥L Formatting Code ★★☆☆☆
Ctrl + Alt + I ⌃⌥I Automatic indentation. ★★★☆☆
Tab / Shift + Tab tab,⇧+tab Manual indent/reverse indent ★★★★★
Ctrl + X or Shift + Delete ⌘X Cut ★★★★★
Ctrl + C or Ctrl + Insert ⌘C copy ★★★★★
Ctrl + V or Shift + Insert ⌘V Paste ★★★★★
Ctrl + Shift + V ⌘⇧V Select content from the pasteboard to paste ★★★☆☆
Ctrl + D ⌘D Copies the current line or selected content to the next line or cursor position ★★★☆☆
Ctrl + Y ⌘del Delete the line where the cursor is located ★★★☆☆
Ctrl + Shift + J ⌃⇧J Synthesize selected code into one line. The reverse action of formatting code ★☆☆☆☆
Ctrl + Enter ⌘↩ Smart line segmentation ★★☆☆☆
Shift + Enter ⇧↩ Start a new line. No matter where the cursor is on the line ★★☆☆☆
Ctrl + Shift + U ⌘⇧U Character case switching ★★☆☆☆
Ctrl + Shift + ] / [ ⌘⇧],⌘⇧[ Select backwards/forwards from the cursor in blocks. Click again to increase the selection range. ★☆☆☆☆
Ctrl + Delete ⌥ + del Delete the part of the word after the cursor ★★★★☆
Ctrl + Backspace ⌥ + Backspace Delete the part of the word before the cursor ★★★★☆
Ctrl + +/- ⌘ +,- Fold/open code block, click again to expand the fold/open range ★★★★☆
Ctrl + Shift + + ⌘ ⇧+ Open All ★★☆☆☆
Ctrl + Shift + - ⌘ ⇧- Collapse All ★★☆☆☆
Ctrl + F4 ⌘W Close the current page ★★★☆☆

Search/Replace

Win / Linux Mac Notes Frequency of use
Ctrl + F ⌘F Find ★★★★★
F3 ⌘G Find the next one, combined with the search ★★☆☆☆
Shift + F3 ⌘⇧G Find the previous one, combined with the search ★★☆☆☆
Ctrl + R ⌘R replace ★★★★★
Ctrl + Shift + F ⌘⇧F Find in Files ★★☆☆☆
Ctrl + Shift + R ⌘⇧R Replace in the file ★★☆☆☆

Used search

Win / Linux Mac Notes Frequency of use
Alt + F7 / Ctrl + F7 ⌥F7/⌘F7 The whole project is used to find/declare variables in the current file ★☆☆☆☆
Ctrl + Shift + F7 ⌘⇧F7 Highlight where variables or functions are used in the file ★☆☆☆☆
Ctrl + Alt + F7 ⌘⌥F7 Displays a detailed list of used locations ★☆☆☆☆

Project Operation

Win / Linux Mac Notes Frequency of use
Alt + Shift + F10 ⌃⌥R Select the configuration and run ★☆☆☆☆
Alt + Shift + F9 ⌃⌥D Select configuration and debug ★☆☆☆☆
Shift + F10 ⌃R run ★☆☆☆☆
Shift + F9 ⌃D debug ★☆☆☆☆
Ctrl + Shift + F10 ⌃⇧R,⌃⇧D Run the last run configuration ★☆☆☆☆
Ctrl + Shift + X ⌘⇧X Run command line ★☆☆☆☆

debug related (used when debugging)

Win / Linux Mac Notes Frequency of use
F8 F8 Continue to execute the program after the breakpoint, line by line, one line at a time ★☆☆☆☆
F7 F7 Step into the program that is executed at the breakpoint ★☆☆☆☆
Shift + F7 ⇧F7 Smart entry ★☆☆☆☆
Shift + F8 ⇧F8 step ★☆☆☆☆
ALT + F9 ⌥F9 Run to cursor ★☆☆☆☆
ALT + F8 ⌥F8 Calculating Expressions ★☆☆☆☆
F9 ⌘⌥R Continue executing the program after the breakpoint and stop at the next breakpoint ★☆☆☆☆
Ctrl + F8 ⌘F8 Set a breakpoint for the line where the cursor is located ★☆☆☆☆
Ctrl+Shift+F8 ⌘⇧F8 Browse Breakpoints ★☆☆☆☆

Navigation related

Win / Linux Mac Notes Frequency of use
Ctrl + N ⌘O Search Class. Full Project Range ★☆☆☆☆
Ctrl + Shift + N ⌘⇧O Search for files by file name. Project-wide ★★★★☆
Ctrl + Alt + Shift + N ⌘⌥O Search function. Project-wide ★★★★☆
Alt + Right/Left ⌃←,⌃→ Switch open files left and right ★★★☆☆
F12 F12 Return the last open tool window ★☆☆☆☆
Esc Esc Return to the editor interface ★☆☆☆☆
Shift+Esc ⇧ + Esc The cursor returns to the edit box and closes the useless window ★☆☆☆☆
Ctrl+Shift+F4 ⌘⇧F4 Close the Active Run/Messages//... tab ★☆☆☆☆
Ctrl + G ⌘L Quickly locate by line number (jump to the specified line) ★★★☆☆
Ctrl + E ⌘E Open the list of recently opened files ★★★★☆
Ctrl + Alt + Left/Right ⌘⌥←,⌘⌥→ Back/Forward to last navigation action ★☆☆☆☆
Ctrl + Shift + Backspace ⌘⇧ + Backspace Return to the last edited location ★☆☆☆☆
Alt + F1 ⌥F1 Bring up the target window ★☆☆☆☆
Ctrl + B or Ctrl + Click ⌘B / ⌘ Click Jump to the function declaration ★★★★★
Ctrl + Alt + B ⌘⌥B To implement(S) ★☆☆☆☆
Ctrl + Shift + I ⌥Space,⌘Y Open Quick Definition Query ★☆☆☆☆
Ctrl + Shift + B ⌃⇧B Find the class of a variable ★☆☆☆☆
Ctrl + U ⌘U Go to super-method/super-class ★☆☆☆☆
Alt + Up/Down ⌃↑,⌃↓ Up and down switching function ★★★☆☆
Ctrl + ] / [ ⌘],⌘[ Navigate to the nearest curly brace on the right/left side. Click continuously to expand the range ★☆☆☆☆
Ctrl + F12 ⌘F12 Open the file structure popup ★☆☆☆☆
Ctrl + H ⌃H Navigate the hierarchy of the selected class ★☆☆☆☆
F2 / Shift + F2 F2, ⇧F2 Down/Up highlights errors or warnings for quick location ★☆☆☆☆
F4 / Ctrl + Enter F4/⌘↓ Finding the source of a variable ★☆☆☆☆
Alt + Home ⌥ Home Combined display navigation bar ★☆☆☆☆
F11 F3 Toggle Bookmark ★★★★☆
Ctrl + F11 ⌥F3 Toggle Bookmark Mnemonic ★★★★☆
Ctrl + #[0-9] ⌃0...⌃9 Go to numbered bookmark ★☆☆☆☆
Shift + F11 ⌘F3 Show Bookmarks ★★★☆☆

Refactoring related

Win / Linux Mac Notes Frequency of use
F5 F5 Copying Files ★★★☆☆
F6 F6 Move files ★★★☆☆
Alt + Delete ⌘ Del Safe Deletion ★☆☆☆☆
Shift + F6 ⇧F6 Rename the selected file ★★★☆☆
Ctrl + Alt + N ⌘⌥N Inline variables ★☆☆☆☆
Ctrl + Alt + M ⌘⌥M Introduction method ★☆☆☆☆
Ctrl + Alt + V ⌘⌥V Introducing variables ★☆☆☆☆
Ctrl + Alt + F ⌘⌥F Similar to introducing variables ★☆☆☆☆
Ctrl + Alt + C ⌘⌥C Introducing constants ★☆☆☆☆

Version Control / Local History

Win / Linux Mac Notes Frequency of use
Alt + ~ ⌃V Open the Version Operations Console ★☆☆☆☆
Ctrl + K ⌘K Submit code ★★★★★
Ctrl + T ⌘T Update the code to local ★★★★★
Alt + Shift + C ⌥⇧C View recent changes ★☆☆☆☆

Normal operation

Win / Linux Mac Notes Frequency of use
Ctrl + Shift + A ⌘⇧A Find Operation ★★★★★
Alt + #[0-9] ⌘0...⌘9 Open the corresponding tool window ★☆☆☆☆
Ctrl + Shift + F12 ⌘⇧F12 Maximize the editing window ★★★☆☆
Alt + Shift + F ⌥⇧F Add to Wishlist ★☆☆☆☆
Alt + Shift + I ⌥⇧I Check the current file ★☆☆☆☆
Ctrl + ~ ⌃~ Quickly switch themes ★☆☆☆☆
Ctrl + Alt + S ⌘, Open the settings window ★☆☆☆☆
Ctrl + Tab ⌃+Tab Switch active file ★★★★★

For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.

Article URL:

Related Articles

How to decompress x.tar.xz format files under Linux

Publish Date:2025/04/08 Views:186 Category:OPERATING SYSTEM

A lot of software found today is in the tar.xz format, which is a lossless data compression file format that uses the LZMA compression algorithm. Like gzip and bzip2, it supports multiple file compression, but the convention is not to compr

Summary of vim common commands

Publish Date:2025/04/08 Views:115 Category:OPERATING SYSTEM

In Linux, the best editor should be vim. However, the complex commands behind vim's powerful functions also make us daunted. Of course, these commands do not need to be memorized by rote. As long as you practice using vim more, you can reme

Detailed explanation of command return value $? in Linux

Publish Date:2025/04/08 Views:58 Category:OPERATING SYSTEM

? is a special variable. This variable represents the return value of the previous command. That is to say, when we run certain commands, these commands will return a code after running. Generally, if the command is successfully run, the re

Common judgment formulas for Linux script shell

Publish Date:2025/04/08 Views:159 Category:OPERATING SYSTEM

In shell script programming, predicates are often used. There are two ways to use predicates, one is to use test, and the other is to use []. Let's take a look at how to use these two methods through two simple examples. Example 1 # test –

How to use the Linux file remote copy command scp

Publish Date:2025/04/08 Views:151 Category:OPERATING SYSTEM

Scp copies files between two hosts over the network, and the data is encrypted during transmission. Its underlying layer uses ssh for data transmission. And it has the same authentication mechanism and the same security level as ssh. When u

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Recommended

Tags

Scan the Code
Easier Access Tutorial