Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the phpstorm shortcuts

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces what phpstorm shortcuts have, which can be used for reference. Interested friends can refer to them. I hope you will gain a lot after reading this article. Let's take a look at it.

Common shortcut keys

Set shortcut keys: File-> Settings-> IDE Settings-> Keymap-> Select "eclipse"-> then "Copy"-> then personalize the shortcut key (you are used to)

Common shortcut keys (in the case of keymaps:Default)

Esc key Editor (from tool window)

F1 help, please don't press, it's very stuck!

F2 (Shift+F2) bottom / top highlight error or warning quick positioning

F3 look down for the location of the keyword

F4 find the source of the variable

F5 copy files / folders

F6 Mobility

F11 switch bookmark

F12 returns to the previous tool window

Note: some shortcut keys can only be used without changing the shortcut key.

Query shortcut key

CTRL+N lookup class

CTRL+SHIFT+N finds files and opens 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 looks up a method or variable in a class (JS)

CIRL+B looks for the source of the variable and jumps to the variable declaration

CTRL+ALT+B finds all the subclasses

CTRL+SHIFT+B finds the class of the variable

CTRL+G locates lines, jumps to lines

CTRL+F looks for text in the current window

CTRL+SHIFT+F looks for text in the specified path

CTRL+R current window replacement text

CTRL+SHIFT+R replaces text in the specified path

ALT+SHIFT+C looks for modified files, recent change history

Recently opened files by CTRL+E

F3 find the next one

SHIFT+F3 finds the previous

F4 find the source of the variable

CTRL+ALT+F7 selected characters to find where the project appears

ALT+F7 queries selected characters directly

Query selected characters in Ctrl+F7 file

Automatic code

Enter the import package of ALT+ and correct it automatically.

CTRL+ALT+L format code

CTRL+ALT+I automatic indentation

CTRL+ALT+O optimizes imported classes and packages

CTRL+E recently changed files / code

CTRL+SHIFT+SPACE switch window

CTRL+SPACE space code automatic completion, code hints, generally conflict with the input method

CTRL+ALT+SPACE class name or interface name hint (conflicts with the system)

CTRL+P method parameter prompt, displaying the default parameter

CTRL+J automatic code hint, automatic completion

CTRL+ALT+T puts the selected code in TRY {} IF {} ELSE {}

ALT+INSERT generates code (such as GET,SET methods, constructors, etc.)

Copy shortcuts

F5 copy files / folders

CTRL+C replication

CTRL+V paste

CTRL+X clipping, deleting Lin

CTRL+D copy Lin

Ctrl + Y delete line caret

CTRL+SHIFT+V can copy multiple text

Highlight

CTRL+F selected text, highlighting the jump up and down to the next or previous

F2 (Shift+F2) highlight errors or warnings for quick positioning

Quick location of SHIFT+F2 highlight error or warning

CTRL+SHIFT+F7 highlights multiple keywords.

Local History VCS/SVN

Alt + backquotes (') quickly pops up the VCS menu

Ctrl + K submit Project VCS

Ctrl + T update project from VCS

Alt + Shift + C to see recent changes

Other shortcuts

CTRL+Z retrogression (code regret)

CTRL+SHIFT+Z forward

CTRL+H display class structure diagram

Ctrl + F12 file structure pops up

Hierarchical structure of Ctrl+Shift+H method

Ctrl+Alt+H call hierarchy

CTRL+Q displays code comments

CTRL+W selects the code and pressing continuously will have other effects.

Ctrl+Shift+W reduces the current selection to its previous state

CTRL+B goes to the declaration and quickly opens the class or method description comment at the cursor (CTRL+ mouse click is also possible)

CTRL+O magic method

CTRL+/ comments / / Uncomment

CTRL+SHIFT+/ comments / *... * /

The CTRL+ [] cursor moves to the beginning or end of {} [].

CTRL+SHIFT+ [] check the block code to copy it quickly

Ctrl +'- / +': you can collapse any block of code in the project, including any nodetype=3 element in htm, function, or object literals, and so on. Instead of selecting folding, it automatically recognizes folding.

Ctrl +'.': collapse the code of the selected code

Character case conversion selected by Ctrl+Shift+U

Ctrl+shift+i Quick View variable or method definition Source

CTRL+ALT+F12 Explorer opens the folder and jumps to the location of the current file on disk

ALT+F1 selects any view toolbar in the current file or menu

SHIFT+ALT+INSERT vertical editing mode

CTRL+ALT ← / → returns the location where it was last edited

ALT+ ← / → switch code view, label switch

ALT+ ↑ / ↓ quickly moves and locates between methods

Alt + '7functions: displays the current class / function structure. Similar to the effect of outline in eclipse. The experiment shows that it is more powerful than that of aptana, but it still doesn't fully display the method name under prototype.

SHIFT+F6 renaming, refactoring variable renaming / refactoring in the current region

You can rename not only the file name, but also the function name, which can search for referenced files, and rename local variables. You can also rename and sign. There is a similar shortcut in sublime text: ctrl+shift+d.

Ctrl+shift+enter (intelligent perfect code such as if ())

Ctrl+shift+up/down (move lines, merge selected lines, code selection area moves up / down)

The CTRL+UP/DOWN cursor jumps under the first or last line of the editor display area

The ESC cursor returns to the edit box

The SHIFT+ESC cursor returns to the edit box to close the useless window

CTRL+F4 closes the current editor or tab

Ctrl + Alt + V introduces variables

Ctrl + Alt + F is similar to introducing variables.

Ctrl + Alt + C introduces constant

Ctrl + Tab toggles tabs and tool windows

Ctrl + Shift + A find shortcut key

Alt + # [0-9] Open the corresponding tool window

Ctrl + Shift + F12 Toggle maximize Editor

Alt + Shift + F add to favorites

Alt + Shift + I check the current file and the current configuration file

Ctrl + backquotes (`) quickly switch the current color scheme / code scheme / shortcut key scheme / interface scheme

Ctrl + Alt + S opens the settings dialog box (conflicts with QQ)

Running

Configuration and operation selected by Alt + Shift + F10

Alt + Shift + F9 Select configuration and debugging

Shift + F10 run

Shift + F9 debugging

Ctrl + Shift + F10 Runtime configuration Editor

Ctrl + Shift + X run the command line

Debug

F8 steps past

F7 step in

Shift + F7 Intelligent entry

Shift + F8 step

ALT + F9 run to the cursor

Alt + F8 calculation expression

F9 recovery program

Ctrl + F8 switch breakpoint

Ctrl + Shift + F8 View breakpoints

Navigation

Shift + Esc key to hide the active or last active window

Ctrl + Shift + F4 closes the active run / message / /. Tabs

Ctrl + Shift + Backspace key navigates to the last edited location

Ctrl + Alt+B to implementation (S)

Ctrl + Shift+I Open Quick definition query

Ctrl + U to super-method/super-class

Alt + Home combination displays the navigation bar

Bookmark

Ctrl + F11 switch bookmark mnemonic

Ctrl + # [0-9] go to numbered Bookmark

Shift + F11 displays bookmarks

Editing

Ctrl + Q Quick document query

Code generated by ALT + INSERT. Device (getter,setter method, constructor)

Ctrl + O covering method

Ctrl + I implementation method

Alt + Enter shows intention actions and quick fixes

Shift + Tab indent / unindent selected lines

Ctrl + Shift + J Smart Wire connection (for HTML and JavaScript only)

Ctrl + Enter smart line segmentation (HTML and JavaScript)

Shift + Enter starts a new production line

Ctrl + Delete delete word (word)

Ctrl + Backspace delete word start

Ctrl + keypad + /-expand / collapse code block

Ctrl + Shift + keypad + expand all

Ctrl + Shift + numeric keypad turns off all

Thank you for reading this article carefully. I hope the article "what are the phpstorm shortcuts" shared by the editor will be helpful to you? at the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report