Phpstrom practical functions and shortcut keys Daquan _php skills

Source: Internet
Author: User

What shortcuts or Phpstrom are unique features that make you feel comfortable and quick to write a process?

CTRL + j can quickly enter commonly used code snippets, like Vim snipmate, you can add custom code snippets

Find every thing Phpstorm support class name, file name, and so on a separate search, I often use direct all search. Find every thing need to customize shortcut keys

Very precise functions, class names, variables, etc. are positioned to support namespaces. I have to admit I did a really good job, much better than Vim + Ctag.

ALT + F7 find usages function, it is convenient to locate the function where the call

SHIFT + F6 Renaming can be handy for renaming methods and variable names, and so on. Even renaming the file will automatically fix the include filepath (seemingly limited to a simple path, where the path contains an unrecognized variable). Constants No problem)

Can install Vim plug-in, also enjoy the fast operation VIM

Ctrl+alt+l Code Formatting

If your test code to upload through FTP to the test machine tools->deployment function must be configured, automatically upload the modified file to the test machine

It's not just svn and git that have good support.

Can configure breakpoint debugging, refer to http://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+ Xdebug+and+phpstorm itself is not commonly used

The supported PHP version is very new. The current PHPSTORM7 supports php5.5. The next PHPSTORM8 support Php5.6.

Variables that are not used in a function are grayed out. The use of undefined variables will have a red underline hint. Hint variable well reduced hand error

The above is my commonly used, but also has many functions such as to composer PHPUnit support also did not use. These custom command lines operate.

1. Right-click the name of the project "local History | Show History to view local modification records

2. Ctrl + E To view recently opened files or projects

3. Open File | Setting | Editor, select Show method separators below appearance. It will use your code as a method, using a gray wireframe for intelligent segmentation. You can also use: alt+↑ or ↓, jump between methods

4. Ctrl + Shift + V, you can select the most recent content to paste

5. Ctrl + D, copy and paste the selected text

6. Ctrl + Y, delete the current line or select rows

7. Ctrl + ALT + left-right arrow to navigate to the location of the previous edit

8. Alt + up and down ARROW keys, jump to up/down function

9. Alt + Left and RIGHT arrow keys, navigation tab switch

Ctrl + N, find by class name

Ctrl + Shift + N, find by file name

Ctrl + Shift + Alt + N, find by Function name

Ctrl + Shift + f,find in Path

Ctrl + Shift + I to view the value of the variable initialization

Ctrl + F12, quickly view all methods of the current file

Ctrl +/, single-line comment

Ctrl + Shift +/, multiline comment

18. Modify the default open file Template: "File"---> "setting"---> "File and Code template"

/** + Enter to generate comments automatically

Ctrl + Alt + L, formatting code

Phpstorm Common shortcut keys Daquan

Mac computer Phpstorm shortcut keys

Command + a Select all

Command + C replication

Command + V Paste

Command + z Undo

Command + K code Search

Command + L Enter line number jump to a line

Command + o View the structure of a class

Command +/Single-line Comment

Command + e lists the last files opened

CTRL + SHIFT +/Block Comment

SHIFT + COMMAND + X

SHIFT + COMMAND + R search for the path of the corresponding file by file name

SHIFT + COMMAND + t search for the path of the corresponding file by class name

SHIFT + COMMAND + C Copy the path of the current file

Select filename on left SHIFT + F6 (Mac needs to hold key simultaneously) for file renaming

Shortcut keys for phpstorm under Windows

Ctrl+shift+n Find Files

Ctrl+shift+f find a section of code in a directory (upgraded version of Ctrl+f)

Ctr+shift+r look up a section of code in a directory and replace it (Ctrl+r's upgraded version)

ctrl+alt←/→ returns the location of the last edit

alt+←/→ switch code view, TAB switch

Alt+↑/↓ fast moving location between methods

CTRL+J Insert Activity Code hint

Ctrl+alt+t inserts the wrapping code at the current position

Alt+insert Generate Code Menu

Ctrl+q View Code comments

Ctrl+d Replication as Forward

Ctrl+y Delete When moving forward

Shift+f6 renaming

Ctrl+shift+u Letter Case Conversion

Ctrl+f Find

Ctrl+r replacement

F4 View Source

Ctrl+shift+i view variable or method definition source

Ctrl+g Jump Career

CTRL+ALT+F12 jumps to the current file's location on disk

Alt+down View Next method

Alt+up View Previous method

Ctrl+alt+l Reformatting Code

Ctrl+shift+downstatement Move Down

Ctrl+shift+upstatement Move Up

Alt+shift+downline Move Down

Alt+shift+upline Move Up

ctrl+/Line Comment

ctrl+shift+/block annotations

Ctrl+shift+n Open the file in the project

Ctrl+b jump to the variable declaration

Ctrl+[] Match {}[]

ctrl+shift+]/[Select Block Code

Ctrl+x Cut Line

Ctrl+shift+v Copy multiple text

Alt+left/right Label Switch

Ctrl+p Display Default Parameters

Ctrl+f12 quickly find methods in current class files

--------------------------------------------------------------

Phpstorm shortcut keys:

Ctrl+shift+n Find Files

CTRL+J Insert Activity Code hint

Ctrl+alt+t inserts the wrapping code at the current position

Alt+insert Generate Code Menu

Ctrl+q View Code comments

Ctrl+d Replication as Forward

Ctrl+y Delete When moving forward

Shift+f6 renaming

Ctrl+shift+u Letter Case Conversion

Ctrl+f Find

Ctrl+r replacement

F4 View Source

Ctrl+shift+i view variable or method definition source

Ctrl+g Jump Career

CTRL+ALT+F12 jumps to the current file's location on disk

Alt+down View Next method

Alt+up View Previous method

Ctrl+alt+l Reformatting Code

Ctrl+shift+down statement Move Down

Ctrl+shift+up statement Move Up

Alt+shift+down Line moves down

Alt+shift+up Line moves up

ctrl+/Line Comment

ctrl+shift+/block annotations

Ctrl+shift+n Open the file in the project

Ctrl+b jump to the variable declaration

Ctrl+[] Match {}[]

ctrl+shift+]/[Select Block Code

....

Ctrl+x Cut Line

Ctrl+shift+v Copy multiple text

Alt+left/right Label Switch

Ctrl+p Display Default Parameters

Ctrl+f12 quickly find methods in current class files

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.