Summary and sharing of phpStorm's shortcut keys (Collection)

黄舟
Release: 2023-03-14 08:32:01
Original
2152 people have browsed it

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:

EclipseShortcut 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 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 item)
Alt+Enter displays the properties of the currently selected resource (project, or file, or file)
Shift+Enter inserts a blank line next to the current line (at this time, the mouse can be on the current line Any position in the line, not necessarily the last)
Shift+Ctrl+Enter inserts a blank line in the current line (the principle is the same as the previous article)
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 (press again to do the opposite)
Ctrl+/ comments the current line, press again to uncomment
Ctrl+O Quickly displayOutLine
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 displays 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 all code in the current class
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, or 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, what you enter Each letter of Editor provides a quick match 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 feature was introduced by Idea two years ago. With)
Ctrl+Shift+J Reverse incremental search (same as the previous article, but searching 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 Position to The matching character (such as {}) (when positioning from the front to the back, the cursor must 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 common method in refactoring) One of the commonly used methods, 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 Extract local variables in Class Become a field variable (a more practical function)
Alt+Shift+I Merge variables (maybe it is inappropriate to say this Inline)
Alt+Shift+V Move functions and variables (not very commonly used)
Alt +Shift+Z Reconstructed regret medicine (Undo)

Edit

Scope function shortcut key

Global search and replace Ctrl+ F
Text editor finds the previous Ctrl+Shift+K
Text editor finds the next Ctrl+K
Globally undo Ctrl+Z
Globally copy Ctrl+C
Globally restore the previous Select Alt+Shift+↓
Global cut Ctrl+X
Global quick correction Ctrl1+1
Global content assist Alt+/
Global all selected Ctrl+A
Global delete Delete
Global Contextual 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 use Filter Single-step 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
Globally extract local variables Alt+Shift+L
Global inline Alt+Shift+I
Global move Alt+Shift+V
Global rename Alt+Shift+R
Global rename Do Alt+Shift+Y

The above is the detailed content of Summary and sharing of phpStorm's shortcut keys (Collection). 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!