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 phpstrom shortcut keys?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Editor to share with you what phpstrom shortcuts are, I hope you can learn a lot after reading this article, let's discuss it together!

Summary of phpstrom shortcut keys

Common shortcut keys

Esc key Editor (from tool window)

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

ALT + enter import package, automatic correction

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 + backquotation mark () quickly switch current color / 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

1. The problem of Chinese box in the interface

Settings- > Appearance

Theme sets Windows

Check Override default fonts by (not recommended) and set the font to Song style.

two。 Show line number

Settings- > Editor- > Appearance tag item, check Show line numbers

3. The cursor is not positioned at will

Remove Allow placement of caret after end of line from Settings- > Editor.

4. Do not open the project file when starting

Settings- > General remove Reopen last project on startup.

5. Unable to start Tomcat (IntelliJ IDEA)

Please use the ZIP version of Tomcat

6. Shortcut key problem

You can use the shortcut keys of other software

Settings- > Keymap

7. Shortcut key conflict (modify it yourself)

Default code hints and completion shortcuts conflict with the input method, how to resolve: Settings- > Keymap

In the figure above, click COPY to create a new solution, such as T1

Then start to set the shortcut key, when you modify, right-click will pop up the menu, such as the following picture, change it to the shortcut you want

8. Use * to identify edited files

Editor-> Editor Tabs

Check Mark modifyied tabs with asterisk

9. Coding setting: Chinese garbled problem in editor

This is an error in the project character encoding setting.

FILE-> Settings- > there are 3 settings according to your own needs

IDE Encondings:IDE encoding, select IDE Encoding as GBK. This side has to be adjusted by itself.

Project Encoding: project coding

Default encoding for properties files: default file encoding

10. Font and size in the editor

FILE-> Settings > Editor- > Colors & Fonts-> Font-> right side

Size: font siz

Line spacing: line spacing

In the box below is the font, left-> optional font, right-> actual applied font

11. Show folder or file filtering

File- > Setting- > File Types- > Ignore file and folders

Fill in the filter that you want and don't show it.

Pay attention to the case.

twelve。 Current edit file location

Method 1)

Press ALT+F1 in the selected file you edited, and then select PROJECT VIEW

Method 2)

The positioning icon at the top of the item list box on the left

13. Optimize file saving

File- > Settings- > General- >

Synchronize file on frame activation: whether you need to cancel synchronizing files or not

Save files on framedeactivation: cancel

Save files automatically: select, set auto-save, set 30-second auto-save time, so IDEA can still keep files automatically, so you need to press Ctrl+S to save files every time you switch

After reading this article, I believe you have a certain understanding of phpstrom shortcuts, want to know more about it, welcome to follow the industry information channel, thank you for reading!

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

Internet Technology

Wechat

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

12
Report