Home  >  Article  >  PHPstorm shortcut key introduction summary

PHPstorm shortcut key introduction summary

小云云
小云云Original
2017-12-08 13:43:522818browse

Recently, the editor is studying the 60-day PHP live broadcast course on the PHP Chinese website. During the class, the development tool used by the teacher is PHPstorm, which has many shortcut keys, but we don’t understand it very well. The editor of this article I will share with you the content about PHPstorm shortcut keys, I hope it can help you.

As shown below:

Eclipse shortcut keys

Ctrl+1 Quick fix
Ctrl+D: Delete the current line
Ctrl+Alt+↓ Copy the current line Go to the next line (copy and add)
Ctrl+Alt+↑ Copy the current line to the previous line (copy and add)
Alt+↓ Interaction position between the current line and the line below
Alt+↑ Interaction position between the current line and the line above
Alt+← Previous editing page
Alt+→ Next editing page (of course, for the above one)
Alt+Enter Display the properties of 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 a blank line in the current line (the principle is the same as above) )
Ctrl+Q locates the last edited place
Ctrl+L locates in a certain line (good news for people with more than 100 programs)
Ctrl+M maximizes the current Edit or View (then Press and vice versa)
Ctrl+/ to 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 current Editor's drop-down list (if the current page is not displayed, it will be shown in bold)
Ctrl+/(small keyboard) Collapse the current category All codes in
Ctrl+× (small 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, you can modify the hotkeys of the input method, You can also 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 (press After pressing Ctrl+J, the editor provides 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. It is particularly useful when looking up a word. This function is ideal for both Already available years ago)
Ctrl+Shift+J Reverse incremental search (same as the previous article, but searching from back to front)
Ctrl+Shift+F4 Close all open Editors
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 Locate to the matching character (such as {}) (when positioning from the front to the back, the cursor should be inside the matching character, 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 the most commonly used method in refactoring One of them, 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 Turn local variables in Class into field variables (a more practical function )
Alt+Shift+I Merge variables (maybe it’s inappropriate to say Inline)
Alt+Shift+V Move functions and variables (not very commonly used)
Alt+Shift+Z The regret medicine for reconstruction( Undo)

Edit

Scope function shortcut key

Global search and replace Ctrl+F
Text editor finds the previous Ctrl+Shift+K
Text Editor Find Next Ctrl+K
Global Undo Ctrl+Z
Global Copy Ctrl+C
Global Restore Previous Selection Alt+Shift+↓
Global Cut Ctrl+X
Global Quick correction Ctrl1+1
Global content assist Alt+/
Globally select all Ctrl+A
Globally 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 keys

Global zoom in Ctrl+=
Global zoom out Ctrl+-

Window

Scope function shortcut key

Globally activate editor F12
Globally switch editor Ctrl+Shift+W
Globally 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 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

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 key

Globally appears in the file Ctrl+Shift+U
Globally open the search dialog box Ctrl+H
Declaration in the global workspace Ctrl+G
Reference in the global 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

Global save Ctrl+X

Ctrl+S
Global print Ctrl+P
Global close Ctrl+F4
Global save all Ctrl+Shift+S
Global all close Ctrl+Shift+F4
Global attribute Alt +Enter
Global new Ctrl+N

Project

Scope function shortcut key

Global all build Ctrl+B

Source code

Scope function shortcut key
You can also use Ctrl+1 to automatically correct it.

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 Jump into select Ctrl+F5
Global debugging last started F11
Globally continue F8
Globally use filter to single step Shift+F5
Globally add/remove breakpoints Ctrl+Shift+B
Global display Ctrl+D
Global run last startup Ctrl+F11
Global run to line Ctrl+R
Global execution Ctrl+U

Reconstruction

Function Domain 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

This article is very useful for developers Articles, quickly collect them.

phpstorm tool download:PhpStorm 10.0.1 Mac version

PhpStorm 17.3 win version

Related recommendations:

10 course recommendations on Photoshop shortcut keys

The top ten favorite development tools for PHP development engineers

php Detailed explanation of using PHPstorm’s automatic prompts

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