Home  >  Article  >  Development Tools  >  phpstrom shortcut key summary

phpstrom shortcut key summary

藏色散人
藏色散人forward
2019-09-21 09:09:425905browse

phpstrom shortcut key summary

phpstrom Shortcut Key Summary

Commonly Used Shortcut Keys

Esc Key Editor (from Tools Window)

F2 (Shift F2) Down/up to highlight errors or warnings for quick location

F3 Find down where the keyword appears

F4 Find the source of the variable

F5 Copy file/folder

F6 Move

F11 Switch bookmark

F12 Return to previous tool window

Note: Some shortcut keys , you can use

query shortcut key only without changing the shortcut key

CTRL N to find the class

CTRL SHIFT N to find the file, 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 Position Line, 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 the previous one

F4 Find the source of the variable

CTRL ALT F7 Search where the selected character appears in the project

ALT F7 Directly query the selected character

Ctrl F7 Query selected characters in the file

Auto code

ALT Enter to import the package, automatically correct

CTRL ALT L format Code

CTRL ALT I Auto-indent

CTRL ALT O Optimize imported classes and packages

CTRL E Recently changed files/code

CTRL SHIFT SPACE switch window

CTRL SPACE space code automatic completion, code prompt, generally conflicts 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 in TRY {} IF {} ELSE {}

ALT INSERT generates code (such as GET, SET method, constructor, etc.)

Copy shortcut

F5 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

Highlight

CTRL F Selected text, highlight up and down to jump to the next or previous A

F2 (Shift F2) Highlights errors or warnings for quick location

SHIFT F2 Highlights errors or warnings for quick location

CTRL SHIFT F7 Highlights multiple keywords .

Local history VCS/SVN

Alt backtick (') Quickly pop up the VCS menu

Ctrl K Submit project VCS

Ctrl T Update project from VCS

Alt Shift C View recent changes

Other shortcuts

CTRL Z Rewind (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 Level

CTRL Q Display code comments

CTRL W Select the code, continuous pressing will have other effects

Ctrl Shift W Reduce the current selection to the previous state

CTRL B Go to the declaration 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 the block code to quickly copy

ctrl '-/ ': You can collapse any code block in the project, including any nodetype=3 element in htm, function, or object literal, 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 a folder and jumps to the location of the current file on disk

ALT F1 Selects the current file or any view in the menu Toolbar

SHIFT ALT INSERT vertical editing mode

CTRL ALT ←/→ Return to the last edited position

ALT ←/→ Switch code view, label switching

ALT ↑/↓ in method Quickly move between positions

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 name under prototype.

SHIFT F6 Rename, Restructure variables in the current area Rename/Restructure

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 also Local variables can be renamed. You can also rename the tag name. There is a similar shortcut key in sublime text: ctrl shift d.

ctrl shift enter (intelligent code improvement 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 closes 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 switches 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 (conflicts with QQ)

Run

Alt Shift F10 Select configuration and run

Alt Shift F9 Select configuration and debug

Shift F10 Run

Shift F9 Debug

Ctrl Shift F10 Run the scoped configuration editor

Ctrl Shift X Run command line

Debug

F8 Step over

F7 Step into

Shift F7 Smart entry

Shift F8 Steps

ALT F9 Run to cursor

Alt F8 Calculate expression

F9 Restore program

Ctrl F8 Toggle breakpoints

Ctrl Shift F8 View breakpoints

Navigation

Shift Esc key hides activity or last activation Window

Ctrl Shift F4 Close active run/message//…tab

Ctrl Shift Backspace key to navigate to the last edited position

Ctrl Alt B to implement (S )

Ctrl Shift I Open quick definition query

Ctrl U Go to super-method/super-class

Alt Home Combined display navigation bar

Bookmark

Ctrl F11 Switch bookmark mnemonic

Ctrl #[0-9] Go to numbered bookmark

Shift F11 Show bookmark

Edit

Ctrl Q Quick document query

ALT INSERT generated code... (getter, setter method, constructor)

Ctrl O Override method

Ctrl I Implementation method

Alt Enter Show intended actions and quick fixes

Shift Tab key to 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 keypad/- Expand/collapse code block

Ctrl Shift keypad expand all

Ctrl Shift numeric keyboard closes all

1. Problem with the Chinese box in the interface

Settings->Appearance

Theme Settings Windows

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

2. Display the line number

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

3. The cursor is not positioned randomly

Settings->Editor and remove Allow placement of caret after end of line.

4. Do not open the project file during startup

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 other software Shortcut keys,

Settings->Keymap

7. Shortcut key conflicts (modify by yourself)

Default code prompts and completion shortcut keys follow Input method conflict, how to solve it: Settings->Keymap

In the above picture, click COPY, create a new scheme yourself, such as T1

, and then start setting shortcut keys. When modifying, Right-click and a menu will pop up, as shown below, change it to the shortcut key you want

8. Use * to mark the edited file

Editor –> Editor Tabs

Select Mark modified tabs with asterisk

9. Encoding settings: Chinese garbled problem in the editor

This is a project character encoding setting error

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

IDE Encondings: IDE encoding, select IDE Encoding as GBK. You have to adjust it yourself

Project Encoding:Project encoding

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 size

Line spacing: Line spacing

The lower box is the font, the left side -> can select the font, the right side-> the actual application font

11. Display folder or file filter

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

Fill in the ones you want to filter and not display

Pay attention to the case

12. Position the currently edited file

Method 1)

Press ALT F1 on the selected file for editing, and then select PROJECT VIEW

Method 2)

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

13. Optimize file saving

File->Settings->General->

Synchronize file on frame activation: Personal needs whether to cancel synchronized files

Save files on framedeactivation: Cancel

Save files automatically: Select, set automatic saving, set automatically in 30 seconds Save the time, so that IDEA can still automatically keep the file, so every time you switch, you need to press Ctrl S to save the file

Related recommendations: "PhpStorm Usage Tutorial"

The above is the detailed content of phpstrom shortcut key summary. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete