PHPstorm shortcut key summary sharing

小云云
Release: 2023-03-19 22:48:01
Original
1585 people have browsed it

Using PHPstorm shortcut keys will help us develop and write code more efficiently. This article mainly brings you a PHPstorm shortcut key (share). The editor thinks it is quite good, so I will share it with you now and give it as a reference for everyone. Let’s follow the editor to take a look, I hope it can help everyone.

As shown below:

Eclipse shortcut keys

Ctrl+1 Quick fix
Ctrl+D: Delete the current line
Ctrl +Alt+↓ Copy the current line to the next line (copy and increase)
Ctrl+Alt+↑ Copy the current line to the previous line (copy and increase)
Alt+↓ The interactive position of the current line and the line below
Alt+↑ The current line and The interactive position of the above line
Alt+← The previous editing page
Alt+→ The next editing page (of course, for the above one)
Alt+Enter displays the currently selected resource (project, or file or file)
Shift+Enter Inserts a blank line in the next line of the current line (The mouse can be at any position of the current line, not necessarily the last)
Shift+Ctrl+Enter Inserts in the current line Blank line (principle is the same as above)
Ctrl+Q locates the last edited place
Ctrl+L locates on a certain line (good news for people with more than 100 programs)
Ctrl+M maximizes the current Edit or View (press again and vice versa)
Ctrl+/ Comment the current line, press again to uncomment
Ctrl+O Quickly display OutLine
Ctrl+T Quickly display the inheritance structure of the current class
Ctrl +W Close the current Editor
Ctrl+K Quickly navigate to the next one by referring to the selected Word
Ctrl+E Quickly display the drop-down list of the current Editor (if the current page is not displayed, it is indicated in bold)
Ctrl+/( Keyboard) Collapse all codes in the current class
Ctrl+× (Keyboard) Expand all codes in the current class
Ctrl+Space The code assistant completes the insertion of some codes (but generally conflicts with the input method and can be modified The hotkey of the input method can also be temporarily replaced by Alt+/)
Ctrl+Shift+E displays the manager that manages all currently opened Views (you can choose to close, activate, etc.)
Ctrl+J Positive Incremental search (after pressing Ctrl+J, the editor will provide a quick match for each letter you enter to locate a certain word. If not, it will be displayed in the stutes line as not found. When searching for a word, especially Practical, this function was available in Idea two years ago)
Ctrl+Shift+J Reverse incremental search (same as the previous article, but only searches from back to front)
Ctrl+Shift+F4 Close all Open Editor
Ctrl+Shift+X Change all currently selected text to lowercase
Ctrl+Shift+Y Change all currently selected text to lowercase
Ctrl+Shift+F Format current code
Ctrl+Shift+P locates the corresponding matching character (such as {}) (when positioning from the front to the back, the cursor should be inside the matching character, from the back to the front, and vice versa)

Reconstruction

Alt+Shift+R Rename (this is my favorite one, especially the Rename of variables and classes, which can save a lot of labor than manual methods)
Alt+Shift+M Extraction method (this is one of the most commonly used methods in refactoring, especially useful for a lot of muddy code)
Alt+Shift+C Modify the function structure (more practical, there are N functions calling this method , modify it once)
Alt+Shift+L Extract local variables (you can directly extract some magic numbers and strings into a variable, especially when called from multiple places)
Alt+Shift+F Put Class in The local variable becomes a field variable (a more practical function)
Alt+Shift+I merges variables (maybe it is inappropriate to say Inline)
Alt+Shift+V moves functions and variables (not very commonly used)
Alt+Shift+Z Reconstructed regret medicine (Undo)

Edit

Scope function shortcut keys

Global search and Replace Ctrl+F
Text Editor Find Previous Ctrl+Shift+K
Text Editor Find Next Ctrl+K
Global Undo Ctrl+Z
Global Copy Ctrl+C
Global Restore the previous selection Alt+Shift+↓
Global cut Ctrl+X
Global quick correction Ctrl1+1
Global content assist Alt+/
Globally select all Ctrl+A
Global delete Delete
Global context information Alt+?
Alt+Shift+?
Ctrl+Shift+Space
Text editor incremental search Ctrl+J
Text editor incremental reverse search Ctrl+Shift+J
Global paste Ctrl+V
Global redo Ctrl+Y

View

Scope function shortcut key

Global zoom Ctrl+=
Global Reduce Ctrl+-

Window

Scope function shortcut key

Activate the editor globally F12
Switch the editor globally Ctrl+ Shift+W
Global previous editor Ctrl+Shift+F6
Global previous view Ctrl+Shift+F7
Global previous perspective Ctrl+Shift+F8
Global next editor Ctrl +F6
Global next view Ctrl+F7
Global next perspective Ctrl+F8
Text editor displays ruler context menu Ctrl+W
Global display view menu Ctrl+F10
Global Display system menu Alt+-

Navigation

Scope function shortcut key

Open structure Ctrl+F3 in Java editor
Open type globally Ctrl+Shift+T
Open type hierarchy globally F4
Open declaration globally F3
Open external javadoc globally Shift+F2
Open resources globally Ctrl+Shift+R
Global back history Alt+←
Global forward history Alt+→
Global previous Ctrl+,
Global next Ctrl+.
Global in hierarchy Open in type Ctrl+Shift+H
Go globally to matching bracket Ctrl+Shift+P
Go globally to previous editing position Ctrl+Q
Text editor go to line Ctrl+L

Search

Scope function shortcut keys

Appear globally in the file Ctrl+Shift+U
Open the search dialog box globally Ctrl+H
Declaration in the global workspace Ctrl+G
Reference in the global workspace Ctrl+Shift+G

Text editing

Scope function shortcut keys

Text editor rewrite switchInsert
Scroll up the text editor Ctrl+↑
Scroll down the text editor Ctrl+↓

File

Scope function shortcut keys

Global save Ctrl+X

Ctrl+S
Global print Ctrl+P
Global close Ctrl+F4
Save all globally Ctrl+Shift+S
Close all globally Ctrl+Shift+F4
Global properties Alt+Enter
Global new Ctrl+N

Project

Scope function shortcut key

Global all build Ctrl+B

Source code

Function Domain function shortcut keys
can also be automatically corrected using Ctrl+1.

Run

Scope function shortcut key
Global single step returns to F7
Global single step skips F6
Global single step jumps to F5
Global single step into select Ctrl+F5
Global debugging last started F11
Global continue F8
Global single step using filter Shift+F5
Global add/remove breakpoint Ctrl +Shift+B
Global display Ctrl+D
Global run last start Ctrl+F11
Global run to line Ctrl+R
Global execution Ctrl+U

Reconstruction

Scope function shortcut key

Global undo reconstruction Alt+Shift+Z
Global extraction method Alt+Shift+M
Global extraction Local variable Alt+Shift+L
Global inline Alt+Shift+I
Global move Alt+Shift+V
Global rename Alt+Shift+R
Global redo Alt+Shift+Y

Related recommendations:

phpstorm commonly used shortcut keys

phpstorm cancels automatic saving, modifies the shortcut keys and identifies the modified ones Files are marked with stars

WebStorm common shortcut keys

The above is the detailed content of PHPstorm shortcut key summary sharing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template