Phpstrom shortcut Keys Daquan

Source: Internet
Author: User
Tags php class

Query shortcut keys

CTRL + N Find class

Ctrl+shift+n Global search files, preferred file names matching files

Ctrl+shift+alt+n Find PHP class name/variable name, JS method name/variable name, CSS Selector

Cirl+b find the source of the variable, jump to the variable declaration (CTRL + mouse click can also)

Ctrl+alt+b find all subclasses that inherit the interface or parent, count the number of all subclasses

Ctrl+shift+b find the class of variable (not very welcome evaluation) CTRL+G Positioning line, jump career

Ctrl+f finding text in the current window

Ctrl+shift+f finding text characters in the specified path

Ctrl+r The current window replaces text

Ctrl+shift+r replacing text in a specified path

Ctrl+e recently opened files

Automatic code

CTRL+J Automatic code hints, auto-completion

You can also directly enter the corresponding spelling, press the TAB key (similar to the Linux command completion)

ALT + ENTER import package, auto fix

    • Ctrl+alt+l Formatting Code

    • Ctrl+alt+i Auto Indent

    • Ctrl+alt+space class name or interface name hint (conflicts with System) prompt class name keyword (abstract public ...)

Ctrl+p method parameter hints, showing default parameters

Alt+insert generate code (such as Get,set method, constructor, etc.), the cursor takes effect in class

Ctrl+alt+o optimized imported classes and packages need to be configured ctrl+shift+space switch window

Ctrl+space Space Code automatic completion, code hints, general and input method conflicts

    • Ctrl+alt+t put the selected code in try{} if{} else{}

Copy Shortcut

    • F5 Copying files/folders

    • CTRL + C copy

    • Ctrl + V Paste

    • Ctrl+x Cut, Delete row

    • Ctrl + Y Delete Row caret

    • Ctrl+d copy lines, quickly distribute Li tags, etc.

    • Ctrl+shift+v can copy multiple text, save the previous copy of the text

Highlight

    • SHIFT+F2 highlighting error or warning quick position error, multiple error loops highlighting

Local History VCS/SVN

    • Ctrl + K Submit project VCs

    • Ctrl + T update items from VCs

    • Alt + Shift + C View Project Recent file version change file, ctrl+e just view the modified file

    • Alt + ' (point above table) Quick popup vcs menu

Other Shortcuts

    • CTRL + Z Backwards (code regrets)

    • Ctrl+shift+z forward

    • Ctrl+h Display class-level diagrams, inheritance/implementation relationships

    • Ctrl +F12 File Structure popup similar to ALT + 7

    • Ctrl+w block check code, continuous press will have other effects ctrl+shift+w reduce the current selection to the previous state

    • Ctrl+o Magic Method, valid in PHP class body

    • Ctrl+shift+i quickly view a variable or method definition source, or you can hold the mouse down +ctrl

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

    • CTRL + [] cursor moves to {}[] start or end position

    • Ctrl+shift+[] Direct Check Block code = CTRL+W Press several times

    • Shift+alt+insert Vertical Edit mode

    • ctrl+/single-line comment/Cancel comment

    • ctrl+shift+/Block comment/Suppress block comment

    • Ctrl+shift+u selected character-case conversions

    • CTRL + '-/+ ': You can collapse any code block in the project, including any nodetype=3 element in the HTM, function, or object direct amount, and so on. It is not selected for folding, but is automatically recognized for folding.

    • CTRL + '. ': Collapse the code of the selected code

    • ctrl+alt←/→ return to last edited position

    • alt+←/→ Toggle Code View, Tag toggle

    • Alt+↑/↓ fast positioning between methods

    • Ctrl+shift+enter (Smart perfect code such as if ())

    • Ctrl+shift+up/down (move row, merge selected row, code Select Area up/down move)

    • Shift+f6 Rename, refactor variable rename/refactor in the current region not only can you rename the file name, but you can name the function name, the function name can search for the referenced file, and you can rename the local variable. You can also rename tag names.

    • ALT + ' 7 ': Displays the current class/function structure. Similar to the effect of outline in eclipse. Experiment, to Aptana than the power of some, but still can not fully display prototype the following method name.

    • Alt + Shift + I Check the current file with the current configuration file

Edit

    • Ctrl + Q Quick Document Query

    • ALT + INSERT Generated code ... (Getter,setter method, constructor)

    • Ctrl + O override method

    • Ctrl + I Implementation method

    • Ctrl + J Active code hints

    • Alt + Enter Explicit action and quick fix

    • Shift + Tab indent/un-indent selected rows

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

    • Ctrl + Enter Smart line Segmentation (HTML and JavaScript)

    • Shift + Enter to start a new line

    • Ctrl + DELETE Delete Word (word)

    • Ctrl + Backspace Delete entire word, simple Backspace single character delete

Run

    • Alt + Shift + F10 Select the configuration and run

    • Ctrl + Shift + X Run command line

    • Alt + Shift + F9 Select configuration and debugging

    • Shift + F10 Run

    • Shift + F9 Debugging

    • Ctrl + Shift + F10 run in-scope configuration Editor

    • Hierarchy of Ctrl+shift+h methods

    • Ctrl+alt+h Call Hierarchy

    • Ctrl+q Show Code comments

    • ALT+F1 Select any view in the current File or menu toolbar

    • Ctrl+up/down cursor jumps to the first or last line of the editor display area

    • ESC cursor returns to edit box

    • Shift+esc the cursor back to the edit box, close the useless window

    • Ctrl+f4 Close the current editor or tab

    • Ctrl + Alt + V Introducing variables

    • Ctrl + Alt + F similar to introducing variables

    • Ctrl + ALT + C Introducing Constants

    • Ctrl + TAB Toggle Tabs and tool windows

    • Ctrl + Shift + A find shortcut keys

    • ALT + #[0-9] Open the appropriate tool window

    • Ctrl + Shift + F12 Toggle Maximize Editor

    • Alt + Shift + F Add to Favorites

    • Ctrl + anti-quote (') quick switch current color/code scheme/shortcut key scheme/interface scheme

    • Ctrl + Alt + S Open Settings dialog (conflict with QQ)

Debugging

    • F8 Step Over

    • F7 Step Into

    • Shift + F7 Smart Entry

    • Shift + F8 Step

    • ALT + F9 Run to Cursor

    • Alt + F8 Calculation expression

    • F9 Recovery Program

    • Ctrl + F8 Toggle Breakpoints

    • Ctrl + Shift + F8 View breakpoints

Navigation

    • Shift + ESC hides the active or last activated window

    • Ctrl + Shift + F4 close active run/message//... Options tab

    • Ctrl + Shift + BACKSPACE keys to navigate to the last edited position

    • Ctrl + Alt+b to implementation (S)

    • Ctrl + shift+i to open a quick definition query

    • Ctrl + U go to Super-method/super-class

    • Alt + Home Combo Show navigation bar

Bookmark

    • Ctrl + F11 Toggle Bookmark mnemonics

    • Ctrl +#[0-9] go to numbered bookmarks

    • Shift + F11 Display bookmarks

ESC key Editor (from tool window)

    • F1 help don't press, very card!

    • F2 (SHIFT+F2)/high-gloss error or warning quick location

    • F3 down find where the keyword appears

    • F4 finding the source of a variable

    • F5 Copying files/folders

    • F6 Mobile

    • F11 Toggle Bookmarks

    • F12 back to the previous tool window

Modify File Author
    • Set search for File and Code Templates

Phpstrom shortcut Keys Daquan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.