Home  >  Article  >  Backend Development  >  Detailed explanation of some shortcut keys of phpstrom

Detailed explanation of some shortcut keys of phpstrom

小云云
小云云Original
2018-03-31 11:02:442052browse

This article mainly shares with you the detailed explanation of some shortcut keys of phpstrom. It is mainly shared with you in the form of code. I hope it can help you.

Shortcut keys for writing code

Ctrl+ c Paste
Ctrl+ v Copy
Ctrl+ z Backward
Ctrl+shift+ z Forward
Ctrl+ b Function tracing, Personally used Ctrl+click
Ctrl+F Query
Ctrl+G Jump to the specified line number

Very useful shortcut keys:

Ctrl+ e List recently opened files
Ctrl+ / Line comment
ctrl + shift + / Block comment
Ctrl+ shift + f Global search
Ctrl + Alt + l Automatic indentation and typesetting
Tab+shift Unindent the selected content
ctrl+alt+L Reformat the code (conflicts with the lock qq shortcut key and can be re-customized)
Ctrl+Shift+V Pasteboard, select the recent content that needs to be pasted
Ctrl+R Replace

More useful shortcut keys:

Ctrl+ shift + u switch case
shift + Ctrl+ c copy the path of the current file
ctrl+n search class
Ctrl+alt +F7 View where a method is called
ctrl+space code prompt
Ctrl + j Display commonly used code snippets
Ctrl+F12 View the current file path, double-click to display the file location directly in the folder.

Rarely used shortcut keys:

Ctrl+ shift + + / command + shift + - Fold/expand all blocks
control + tab / control + shift + tab switch to open File
alt + F12 Open the command line bar
ctrl+d Copy the current line to the next line
ctrl+y Delete the current line
ctrl+. When the input method is not called, collapse the current method Code
alt+up/down arrow jump to the previous/next method
ctrl + b jump to variable declaration

Query shortcut key summary:

CTRL + N class name Search
CTRL + SHIFT + N File name search
CTRL + SHIFT + ALT + N Function name search
Press shift twice to support separate searches for class names, file names, method names, etc. Commonly used ones are all Search
ctrl + b or ctrl+click method variables to quickly find
alt + F7 to find where the function or class is called

Related recommendations:

PHPstorm shortcut key summary sharing

phpStorm shortcut key summary sharing (collection)

phpstorm commonly used shortcut keys collection

The above is the detailed content of Detailed explanation of some shortcut keys of phpstrom. 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