PhpStorm 常用快捷键

查找和跳转

查找文件、class、Symbols、Actions: Double Shift
查找字段被使用的所有位置:Alt+F7

显示文件结构窗口:Alt+7

文件快速切换: Ctrl + TAB
代码前后跟踪跳转:Ctrl+Alt+Left / Ctrl+Alt+Right
跳到下/上一个method:Alt+Down / Alt+Up

代码行书签功能:

 F11 Toggle Bookmark
 Ctrl+F11 Toggle Numbered Bookmark (Bookmark with Mnemonic)
 Shift+F11 Show bookmarks
 Ctrl+0..9 Navigate to numbered bookmark

继承类相关:
Ctrl + Alt + B Go to implementation(s)
Ctrl + U Go to super-method/super-class
Ctrl+H Show Hierarchy tool window


代码编辑

代码补全:
ctrl + space, Alt + Enter, Ctrl+Shift+Enter
Ctrl + Alt + T Surround with... (if..else, try..catch, for, etc.)
Alt + Insert Generate code... (Getters, Setters, Constructors)

扩选代码块:Ctrl+W / Ctrl+Shift+W
列选择:Shift+Alt and drag the mouse to perform column selection

Reformat Code: Ctrl+Alt+L, Shift+Ctrl+Alt+L

你可能感兴趣的:(PhpStorm 常用快捷键)