Home  >  Article  >  Backend Development  >  Summary of the most complete shortcut keys for PHPstorm

Summary of the most complete shortcut keys for PHPstorm

墨辰丷
墨辰丷Original
2018-05-19 13:40:312660browse

This article mainly introduces the most complete summary of shortcut keys for PHPstorm. Interested friends can refer to it. I hope it will be helpful to 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 add)
Ctrl Alt ↑ Copy the current line to the previous line (copy and add)
Alt ↓ Interactive position between the current line and the following line
Alt ↑ The interactive position between the current line and the previous line
Alt ← The previous edited page
Alt → The next edited 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 (at this time, the mouse can be at any position of the current line, not necessarily the last)
Shift Ctrl Enter in the current line Insert a blank line (the 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 cancel the comment
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 current Editor's drop-down list (if it is not displayed on the current page, it will be shown in bold)
Ctrl / (small keyboard) Collapse the current class All codes
Ctrl Temporarily use Alt / instead)
Ctrl Shift E Displays the manager that manages all currently opened Views (you can choose to close, activate, etc.)
Ctrl J Forward incremental search (after pressing Ctrl J, For each letter you enter, the editor provides a quick match to locate a certain word. If not, it will be displayed in the stutes line as not found. This is especially useful when looking up a word. Idea had this feature two years ago)
Ctrl Shift J Reverse incremental search (same as above, except searching from back to front)
Ctrl Shift F4 Close all open Editors
Ctrl Shift X Change all currently selected text Lowercase
Ctrl Shift Y Change the currently selected text to all lowercase
Ctrl Shift F Format the current code
Ctrl Shift P Position the 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, or vice versa)

Reconstruction


Alt Shift R Rename (this is my favorite one, Especially the Rename of variables and classes 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 Modifies the function structure (more practical, there are N functions calling this method, the modification is done once)
Alt Shift L Extracts local variables (you can directly extract some magic numbers and strings into a variable, especially When calling from multiple places)
Alt Shift F changes local variables in Class into field variables (a more practical function)
Alt Shift I merges variables (it may be inappropriate to say Inline)
Alt Shift V moves functions and variables (less commonly used)
Alt Shift Z Refactoring regret medicine (Undo)

Edit


Scope function shortcut keys


Global Find 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
Globally restore the previous selection Alt Shift ↓
Globally cut Ctrl ##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 in Ctrl =
Global zoom out Ctrl -


Window


Scope function shortcut key

Global activation editor F12
Global switch editor Ctrl Shift W

Global previous edit 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 view Ctrl F8
Text editor display ruler context menu Ctrl W
Global display view menu Ctrl F10
Global display system menu Alt -


Navigation


Scope function shortcut keys

Java editor open structure Ctrl F3
Globally open type Ctrl Shift T
Globally open type hierarchy F4
Globally open declaration F3
Globally open external javadoc Shift F2
Globally open resource Ctrl Shift R
Global Back History Alt ←
Global Forward History Alt →
Global Previous Ctrl,
Global Next Ctrl.
Global Open Type in Hierarchy Ctrl Shift H
Globally go to matching bracket Ctrl Shift P
Globally go to previous editing position Ctrl Q
Text editor go to line Ctrl L

Search

Scope function shortcut key

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

Text editing

Scope function shortcut key

Text editor rewrite switchInsert
Scroll Ctrl on the text editor ↑
Scroll Ctrl on the text editor ↓

File

Scope function shortcut key

Globally save Ctrl ##Global properties Alt Enter
Global new Ctrl N


Project


Scope function shortcut keys


Global all build Ctrl B


Source code


Scope 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 keys


Global undo reconstruction Alt Shift Z

Global extraction method Alt Shift M

Global extraction of local variables 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 Shortcut keys
Summary sharing

PHPstorm shortcut keysIntroduction summary

Code editing DevicePHPstorm shortcut keysSummary

The above is the detailed content of Summary of the most complete shortcut keys for PHPstorm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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