The PHPStrom provided by jetbrains greatly facilitates the compilation of PHP programs. the following small series will summarize the functions and shortcut keys used in PHPStrom, during the compilation process, it becomes more comfortable and fast. if you are interested, let's take a look at the shortcut keys or special functions provided by PHPStrom, which makes you feel comfortable and fast in the compilation process?
CTRL + j can quickly enter common code snippets, similar to vim's snipMate. you can add custom code snippets.
Find every thing phpstorm supports separate searches for class names, file names, and so on. I usually search all classes directly. Find every thing requires a custom shortcut key
Precise positioning of functions, class names, variables, etc. namespace is supported. I have to admit that it is really good, and it is much better than vim + ctag.
Alt + F7 find usages function, you can easily find where the function is called
Shift + F6 renaming can easily rename methods and variable names. Even the file rename will automatically correct the include filepath (it seems to be limited to a simple path, and the path contains unidentifiable variables. Constant)
You can install the vim plug-in and enjoy vim's quick operations.
Ctrl + alt + l code formatting
If your test code is to be uploaded to the test machine Tools through ftp-> deployment function must be configured, the modified files will be automatically uploaded to the test machine
Not only does svn and git have good support
Breakpoint debugging can be configured, reference 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 quite new. Phpstorm7 currently supports php5.5. Phpstorm8 supports Php5.6.
The unused variables in the function are gray. When undefined variables are used, a red underline is displayed. The prompt variable reduces the number of errors.
The above are common and many other functions, such as the support for composer phpunit, have never been used. These are used to command line operations.
1. right-click the project name and choose "Local History | Show History" to view the Local modification records.
2. Ctrl + E to view recently opened files or projects
3. open File | Setting | Editor and select Show Method Separators under Appearance. It intelligently splits your code by method and uses gray wireframes. You can also use: alt + ↓ or ↓ to jump between methods
4. Ctrl + Shift + V. you can select the most recent content to paste.
5. press Ctrl + D to copy and paste the selected text.
6. press Ctrl + Y to delete the current row or the selected row.
7. press Ctrl + Alt + left and right arrow keys to locate the last Edited position.
8. Alt + up and down arrow keys, jump to the top/down function
9. Alt + left and right arrow keys, navigation label switch
10. Ctrl + N, search by class name
11. Ctrl + Shift + N, search by file name
12. Ctrl + Shift + Alt + N, search by function name
13. Ctrl + Shift + F, Find in Path
14. press Ctrl + Shift + I to view the variable initialization value.
15. Ctrl + F12: Quickly View all methods of the current file
16. Ctrl +/, single line comment
17. Ctrl + Shift +/, multi-line comment
18. modify the default file template: "file" ---> "setting" ---> "file and code template"
19./** + Enter to automatically generate comments
20. press Ctrl + Alt + L to format the code.
Phpstorm common shortcut keys
Phpstorm shortcut for mac
Command + a select all
Command + c replication
Command + v paste
Command + z undo
Command + k code search
Command + l enter the row number to jump to a line
Command + o view the structure of a class
Command +/single line comment
Command + e list the last opened files
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 the file name shift + f6 on the left (mac needs to press and hold the key at the same time) to rename the file
Phpstorm shortcut in windows
Ctrl + shift + n search for files
Ctrl + shift + f search for a piece of code in a directory (the upgraded version of ctrl + f)
Ctr + shift + r search for and replace a piece of code in a directory (ctrl + r upgraded version)
CTRL + ALT ←/→ return the last Edited position
ALT + ↓/→ switch the code View and switch tags
ALT + ↑/↓ fast moving and locating between methods
Ctrl + j insert activity code prompt
Ctrl + alt + t insert surround code at the current position
Alt + insert generate code menu
Ctrl + q View code comments
Ctrl + d copy the current row
Ctrl + y delete the current row
Shift + F6 rename
Ctrl + shift + u case-sensitive conversion
Ctrl + f search
Ctrl + r replace
F4 View Source code
Ctrl + shift + I view the variable or method definition source
Ctrl + g jump row
Ctrl + alt + F12 jump to the current file location on disk
Alt + down to view the next method
Alt + up to view the previous method
Ctrl + alt + l format the code again
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 comment
Ctrl + shift + n open files in the project
Ctrl + B jump to the variable declaration
Ctrl + [] match {} []
Ctrl + shift +]/[select block code
Ctrl + x cut rows
Ctrl + shift + v copy multiple texts
Alt + left/right Label Switching
Ctrl + p display default parameters
Ctrl + F12 quick search in the current class file
--------------------------------------------------------------
Phpstorm shortcut:
// Ctrl + shift + n find the file
// Ctrl + j insert activity code prompt
// Ctrl + alt + t insert the surround code at the current position
// Alt + insert generate code menu
// Ctrl + q View code comments
// Ctrl + d copy the current row
// Ctrl + y delete the current row
// Shift + F6 rename
// Ctrl + shift + u case-sensitive conversion
// Ctrl + f search
// Ctrl + r replace
// F4 View Source code
// Ctrl + shift + I view the variable or method definition source
// Ctrl + g jump row
// Ctrl + alt + F12 jump to the current file location on the disk
// Alt + down to view the next method
// Alt + up to view the previous method
// Ctrl + alt + l format the code again
// Ctrl + shift + down statement move down
// Ctrl + shift + up statement move up
// Alt + shift + down line move down
// Alt + shift + up line move up
// Ctrl +/line comment
// Ctrl + shift +/block comment
// Ctrl + shift + n open files in the project
// Ctrl + B jump to the variable declaration
// Ctrl + [] match {} []
// Ctrl + shift +]/[select block code
....
// Ctrl + x cut rows
// Ctrl + shift + v copy multiple texts
// Alt + left/right Label Switching
// Ctrl + p display default parameters
// Ctrl + F12 quick search in the current class file