Home >Backend Development >PHP Tutorial >Summary of code editor PHPstorm shortcut keys

Summary of code editor PHPstorm shortcut keys

巴扎黑
巴扎黑Original
2017-08-14 11:00:272922browse

The following editor will bring you a PHPstorm shortcut key (share). The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.

is as follows:

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+↓ The interactive position between the current line and the line below
Alt+↑ The interactive position between the current line and the line above
Alt+← The previous edited page
Alt+→ The next edited page (of course, for the above one) )
Alt+Enter displays 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 (at this time, the mouse can be anywhere in the current line, Not necessarily the last one)
Shift+Ctrl+Enter inserts a blank line in the current line (the principle is the same as the above)
Ctrl+Q locates the last edited place
Ctrl+L locates a certain line (for programs exceeding There is good news for people with 100)
Ctrl+M Maximizes the current Edit or View (press again to do the opposite)
Ctrl+/ Comments the current line, press again to cancel the comment
Ctrl+O Quickly displays OutLine
Ctrl+T Quickly displays the inheritance structure of the current class
Ctrl+W Closes the current Editor
Ctrl+K Quickly locates the next one by referring to the selected Word
Ctrl+E Quickly displays the drop-down list of the current Editor (If the current page is not displayed, it will be shown in bold)
Ctrl+/(small keyboard) Collapse all codes in the current class
Ctrl+×(small keyboard) Expand all codes in the current class
Ctrl+Space code The assistant completes the insertion of some codes (but it usually conflicts with the input method. You can modify the hotkey of the input method, or temporarily use Alt+/ instead)
Ctrl+Shift+E Display management of all currently opened Views Editor (you can choose to close, activate, etc.)
Ctrl+J Forward incremental search (after pressing Ctrl+J, the editor provides quick matching for each letter you enter to locate a word. If there is no , then it will be displayed as not found in the stutes line. It is particularly useful when searching for a word. This function was introduced by Idea two years ago)
Ctrl+Shift+J Reverse incremental search (same as the previous article, except Check 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 Change to lowercase
Ctrl+Shift+F Format the current code
Ctrl+Shift+P Locate to the corresponding matching character (such as {}) (When locating from the front to the back, the cursor should be inside the matching character, and then to Front, vice versa)

Refactoring

Alt+Shift+R Rename (this is my favorite one, especially the Rename of variables and classes) , can save a lot of labor than the manual method)
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 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 this Inline)
Alt+Shift+V Move functions and variables (not commonly used)
Alt+Shift+Z Refactoring regret medicine (Undo)

Edit

Scope function shortcut keys

Global search and replace Ctrl+F
Text editor finds the previous Ctrl+Shift+K
Text editor finds the 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 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
Globally 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

The above is the detailed content of Summary of code editor PHPstorm shortcut keys. 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