Home  >  Article  >  Backend Development  >  A complete list of commonly used shortcut keys for phpstorm

A complete list of commonly used shortcut keys for phpstorm

韦小宝
韦小宝Original
2017-11-27 09:25:316728browse

PhpStorm is a commercial PHP integrated development tool developed by JetBrains. PhpStorm can help users adjust their coding, run unit tests or provide visual debug functions at any time. The following content is a collection of phpstorm shortcut keys.

Commonly used shortcut keys

Set shortcut keys: File -> Settings -> IDE Settings -> Keymap -> Select " Eclipse" -> Then "Copy" a copy -> Then personalize the shortcut keys (what you are used to)

Commonly used shortcut keys (keymaps:Default)

Esc key editing Explorer (from the tool window)
F1 Don’t press Help, it’s very stuck!
F2 (Shift+F2) Down/up to highlight errors or warnings for quick location
F3 Find down where the keyword appears
F4 Find variable sources
F5 Copy files/folders
F6 Move
F11 Switch bookmarks
F12 Return to the previous tool window

Note: Some shortcut keys must be in You can only use the

query shortcut key
CTRL+N to find the class
CTRL+SHIFT+N to find the file without changing the shortcut key. Open files in the project (similar to ctrl+shift+R in eclipse), the purpose is to open files in any directory under the current project
CTRL+SHIFT+ALT+N Find methods or variables in classes (JS)
CIRL+B Find the source of the variable and jump to the variable declaration
CTRL+ALT+B Find all subclasses
CTRL+SHIFT+B Find the class of the variable
CTRL+G Locate the line and jump Line
CTRL+F Search text in the current window
CTRL+SHIFT+F Search text in the specified path
CTRL+R Replace text in the current window
CTRL+SHIFT+R Replace text in the specified path
ALT+SHIFT+C Find modified files, recent change history
CTRL+E Recently opened files
F3 Find next
SHIFT+F3 Find previous
F4 Find variable source
CTRL+ALT+F7 Search where the selected character appears in the project
ALT+F7 Directly query the selected character
Ctrl+F7 Query the selected character in the file

##Auto codeALT+Enter Import package, automatically correct
CTRL+ALT+L Format code
CTRL+ALT+I Automatic indent
CTRL+ALT+O Optimize imported classes and package
CTRL+E Recently changed files/code
CTRL+SHIFT+SPACE Switch window
CTRL+SPACE Space Code auto-completion, code prompts, generally conflict with the input method
CTRL+ALT+ SPACE Class name or interface name prompt (conflicts with the system)
CTRL+P Method parameter prompt, display default parameters
CTRL+J Automatic code prompt, automatic completion
CTRL+ALT+T Put the selected code Place it in TRY{} IF{} ELSE{}
ALT+INSERT Generate code (such as GET, SET method, constructor, etc.)

Copy shortcutF5 Copy file/folder
CTRL+C Copy
CTRL+V Paste
CTRL+X Cut, delete line
CTRL+D Copy line
Ctrl + Y Delete line caret
CTRL+SHIFT+V Can copy multiple texts

HighlightCTRL+F Selected text is highlighted Jump up and down to the next or previous one
F2 (Shift+F2) Highlight errors or warnings for quick positioning
SHIFT+F2 Highlight errors or warnings for quick positioning
CTRL+SHIFT+F7 Highlight multiple Keyword.
Local history VCS/SVN
Alt + backtick (') Quickly pop up the VCS menu
Ctrl + K Submit the project to VCS
Ctrl + T Update the project from VCS
Alt + Shift + C View recent changes

Other shortcuts
CTRL+Z Backward (code regret)
CTRL+SHIFT+Z Forward
CTRL+H Display class structure diagram
Ctrl +F12 File structure popup
Ctrl+Shift+H Method hierarchy
Ctrl+Alt+H Call hierarchy
CTRL+Q Display code comments
CTRL+W Select the code and press continuously There will be other effects
Ctrl+Shift+W Reduce the current selection to the previous state
CTRL+B Go to the statement and quickly open the class or method description comment at the cursor (CTRL + mouse click can also be used)
CTRL+O Magic method
CTRL+/ Comment//Uncomment
CTRL+SHIFT+/ Comment/*...*/
CTRL+ [] Move the cursor to the beginning or end of {}[]
CTRL+SHIFT+[] Select a block of code to quickly copy
ctrl + '-/+': You can collapse any code block in the project, including any nodetype=3 element, function, or object literal in htm etc. Instead of selecting the fold, it automatically recognizes the fold.

ctrl + '.': Fold the code of the selected code

Ctrl+Shift+U Convert the case of the selected character
ctrl+shift+i Quickly view the source of variable or method definition
CTRL+ALT+F12 Explorer opens the folder and jumps to the location of the current file on the disk
ALT+F1 Selects the current file or any view toolbar in the menu
SHIFT+ALT+INSERT Vertical editing mode

CTRL+ALT ←/→ Return to the last edited position
ALT+ ←/→ Switch code view, label switching
ALT+ ↑/↓ Quickly move between methods
alt + '7': Display the current class/function structure. Similar to the effect of outline in eclipse. After testing it, it is more powerful than aptana, but it still cannot fully display the method names under the prototype.
SHIFT+F6 Rename, reconstruct variables in the current area Rename/reconstruct
Not only can you rename the file name, but you can also name the function name. The function name can search for referenced files, and you can also rename local variables. . You can also rename the tag name. There is a similar shortcut key in sublime text: ctrl+shift+d.

ctrl+shift+enter (intelligent improvement of code such as if())
ctrl+shift+up/down (move lines, merge selected lines, and move the code selected area up/down)
CTRL +UP/DOWN The cursor jumps to the first or last line of the editor display area
ESC The cursor returns to the edit box
SHIFT+ESC The cursor returns to the edit box and closes the useless window
CTRL+F4 Close the current Editor or tab

Ctrl + Alt + V introduces variables
Ctrl + Alt + F is similar to introducing variables
Ctrl + Alt + C introduces constants

Ctrl + Tab key Switch tabs and tool windows
Ctrl + Shift + A Find shortcut keys
Alt + #[0-9] Open the corresponding tool window
Ctrl + Shift + F12 Switch maximized editor
Alt + Shift + F Add to favorites
Alt + Shift + I Check the current file and the current configuration file
Ctrl + backtick (`) Quickly switch the current color scheme/code scheme/shortcut key scheme/interface scheme
Ctrl + Alt + S Open the settings dialog box (conflict with QQ)

Run
Alt + Shift + F10 Select the configuration and run
Alt + Shift + F9 Select configuration and debugging
Shift + F10 Run
Shift + F9Debug
Ctrl + Shift + F10Run the scoped configuration editor
Ctrl + Shift +XRun command line

Debug
F8 step over
F7 step into
Shift + F7 smart entry
Shift + F8 step
ALT + F9 Run to the cursor
Alt + F8 Calculate the expression
F9 Resume the program
Ctrl + F8 Switch breakpoints
Ctrl + Shift + F8 View breakpoints

Navigation
Shift + Esc to hide the active or last activated window
Ctrl + Shift + F4 to close active running/messages//...tabs
Ctrl + Shift + Backspace key to navigate to the last edited position
Ctrl + Alt+B Go to implementation(s)
Ctrl + Shift+I Open quick definition query
Ctrl + U Go to super-method/super-class
Alt + Home Combination display navigation bar

Bookmark
Ctrl + F11Switch bookmark mnemonic
Ctrl +#[0-9]Transfer Go to numbered bookmark
Shift + F11Show bookmark

Edit
Ctrl + Q Quick document query
ALT + INSERT Generated code.. .Constructor (getter, setter method, constructor)
Ctrl + O Override method
Ctrl + I Implementation method

Alt + Enter Show intended actions and quick fixes
Shift + Tab key Indent/unindent selected lines

Ctrl + Shift + J Smart Line Joining (HTML and JavaScript only)
Ctrl + Enter Smart Line Splitting (HTML and JavaScript)
Shift + Enter Start a new line

Ctrl + Delete Delete word (word)
Ctrl + Backspace Delete word start
Ctrl + Numpad + / - Expand/collapse code block
Ctrl + Shift + Numpad + Expand all
Ctrl + Shift + Numeric keyboard closes all

The above is the complete list of commonly used shortcut keys for phpstorm. If you are interested, you can go to PHP Chinese website to search for more!

Related recommendations:

phpstorm Chinese problem

phpstormHow to install vue.js plug-in

Code editor PHPstorm shortcut key summary


The above is the detailed content of A complete list of commonly used 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