PHPStorm 常用、默认快捷键 DEFAULTWINDOWS & LINUX KEYMAP

 PHPstorm  2018-09-08  admin  2478  3345

PHPStorm  常用、默认快捷键

DEFAULTWINDOWS & LINUX KEYMAP


Editing
Ctrl + Space  Basic code completion
Alt + Enter  Show intention actions and quick-fixes
Ctrl + P Parameter info (within method call arguments)
Ctrl + Q  Quick documentation lookup
Ctrl + mouse over code Brief Info
Alt + Insert  Generate code... (Getters, Setters, Constructors)
Ctrl + O  Override methods
Ctrl + I Implement methods
Ctrl + Alt + T Surround with... (if..else, try..catch, for,etc.)
Ctrl + /  Comment/uncomment with line comment
Ctrl + Shift + /  Comment/uncomment with block comment
Ctrl + W  Select successively increasing code blocks
Ctrl + Shift + W  Decrease current selection to previous state
Ctrl + Alt + L  Reformat code
Ctrl + Alt + I  Auto-indent line(s)
Ctrl + D  Duplicate current line or selected block
Ctrl + Y  Delete line at caret
Ctrl + Shift + J  Smart line join (HTML and JavaScript only)
Ctrl + Enter Smart line split (HTML and JavaScript only)
Shift + Enter  Start new line
Ctrl + Shift + U  Toggle case for word at caret or selectedblock
Ctrl + Shift + ] / [ Select till code block end/start
Ctrl + Delete  Delete to word end
Ctrl + Backspace  Delete to word start
Ctrl + NumPad+/-  Expand/collapse code block
Ctrl + F4  Close active editor tab
Ctrl+Shift+V  Paste from history

Debugging
F8  Step over
F7  Step into
Shift + F8 Step out
Alt + F8  Evaluate expression
F9 Resume program
Ctrl + F8  Toggle breakpoint
Ctrl+Shift+F8  View breakpoints

Running
Shift + F10  Run
Shift + F9  Debug
Ctrl + Shift + F10  Run context configuration from editor
Ctrl + Shift + X Run command line

Search/Replace
Ctrl + F/R  Find/Replace
F3/Shift + F3  Find next/previous
Ctrl + Shift + F/R  Find/Replace in path

Usage Search
Alt + F7 / Ctrl + F7  Find usages / Find usages in file
Ctrl + Shift + F7 Highlight usages in file
Ctrl + Alt + F7  Show usages

Navigation
Ctrl + N  Go to class
Ctrl + Shift + N  Go to file
Ctrl + Alt + Shift + N  Go to symbol
Ctrl + G  Go to line
Alt + Right/Left  Go to next/previous editor tab
Esc  Go to editor (from tool window)
Ctrl + E Recent files popup
Ctrl + Alt + Left/Right  Navigate back/forward
Ctrl + Shift + Backspace Navigateto last edit location
Alt + F1  Select current file or symbol in any view
Ctrl + B or Ctrl + Click  Go to declaration
Ctrl + Alt + B  Go to implementation(s)
Ctrl + Shift + I Open quick definition lookup
Ctrl + Shift + B  Go to type declaration
Ctrl + U  Go to super-method/super-class
Alt + Up/Down  Go to previous/next method
Ctrl + ] / [ Move to code block end/start
F2 / Shift + F2  Next/previous highlighted error
F4 / Ctrl + Enter  Edit source / View source

Refactoring
F5/F6  Copy/Move
Alt + Delete  Safe Delete
Shift + F6  Rename
Ctrl + Alt + N  Inline Variable
Ctrl + Alt + M/V/F/C  Extract Method/Variable/Field/Constant
Ctrl + Alt + Shift + T  Refactor This (shows all availablerefactorings)

VCS/Local History
Alt + BackQuote (`) ‘VCS’ quick popup
Ctrl + K  Commit project to VCS
Ctrl + T  Update project from VCS
Alt + Shift + C  View recent changes

General
Double Shift Search everywhere
Ctrl + Shift + A  Find Action
Alt + #[0-9]  Open corresponding tool window
Ctrl + Alt + F11  Toggle full screen mode
Ctrl + Shift + F12  Toggle maximizing editor
Alt + Shift + F Add to Favorites
Alt + Shift + I  Inspect current file with current profile
Ctrl + Alt + S  Open Settings dialog
Ctrl + Tab Switch between tabs and tool window

Live Templates / Snippets
Ctrl + J  Insert Live Template
eco  ‘echo’ statement
fore  foreach(iterable_expr as $value) {…}
forek  foreach(iterable_expr as $key => $value){…}
inc/inco  ‘include’/‘include_once’ statement
prif  private function
prof  protected function
pubf  public function
rqr/rqro  ‘require’/‘require_once’ statement
and more...

To find any action inside the IDE use
Find Action ( Ctrl + Shift + A )


ReferenceCard.pdf


如果文章对您有帮助,点击下方的广告,支持一下作者吧!

相关推荐


phpstorm 设置 外部命令

C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.20.11781.0_x64__8wekyb3d8bbwe\wt.exe-d $ContentRoot$$ProjectFileDir$

phpstorm 使用svn

phpstorm 使用svn

ScreenToGif 是一款开源的录屏、摄像头录像、画板录制工具,自带有一个视频编辑器,并能最终导出视频文件,或者 GIF 动画的 Windows 软件,身材小巧,单可执行文件

ScreenToGif 是一款开源的录屏、摄像头录像、画板录制工具,还带有一个视频编辑器,并能最终导出视频文件,或者 GIF 动画的 Windows 软件,身材小巧,单可执行文件,支持中文。这是一个功能非常丰富的工具,除了可以录制屏幕以外,还能使用本机摄像头进行视频录制,以及一个可以录制绘画过程的白板工具。ScreenToGif 支持区域、窗口、全屏录制,FPS 范围在 1~60 之间,可自定义。

idea phpstorm 连接数据库失败解决方法

java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You mu