PhpStorm Cheat Sheet - 快速参考指南,收录常用语法、命令与实践。
| Shortcut | Action |
|---|---|
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 a new line |
Ctrl Shift U | Toggle case for word at caret or selected block |
Ctrl Shift [ | Select till code block start |
Ctrl Shift ] | Select till code block end |
Ctrl Delete | Delete to word end |
Ctrl Backspace | Delete to word start |
Ctrl +/- | Expand/collapse code block |
Ctrl F4 | Close active editor tab |
Ctrl Shift V | Paste from history |
{.shortcuts}
| Shortcut | Action |
|---|---|
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 |
{.shortcuts}
| Shortcut | Action |
|---|---|
Shift F10 | Run |
Shift F9 | Debug |
Ctrl Shift F10 | Run context configuration from editor |
Ctrl Shift X | Run command line |
{.shortcuts}
| Shortcut | Action |
|---|---|
Ctrl F/R | Find/Replace |
F3 | Find next |
Shift F3 | Find previous |
Ctrl Shift F/R | Find/Replace in path |
{.shortcuts}
| Shortcut | Action |
|---|---|
Alt F7 | Find usages |
Ctrl F7 | Find usages in file |
Ctrl Shift F7 | Highlight usages in file |
Ctrl Alt F7 | Show usages |
{.shortcuts}
| Shortcut | Action |
|---|---|
Ctrl N | Go to class |
Ctrl Shift N | Go to file |
Ctrl Shift Alt N | Go to symbol |
Ctrl G | Go to line |
Alt Left/Right | 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 | Navigate to last edit location |
Alt F1 | Select current file or symbol in any view |
Ctrl B | 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 | Next highlighted error |
Shift F2 | Previous highlighted error |
F4 | Edit/view source |
{.shortcuts}
| Shortcut | Action |
|---|---|
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 available refactorings) |
{.shortcuts}
| Shortcut | Action |
|---|---|
Alt <code>`</code> | VCS quick popup |
Ctrl K | Commit project to VCS |
Ctrl T | Update project from VCS |
Alt Shift C | View recent changes |
{.shortcuts}
| Shortcut | Action |
|---|---|
Shift x2 | Search everywhere |
Ctrl Shift A | Find Action |
Alt 1-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 |
{.shortcuts}
| Shortcut | Action |
|---|---|
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 |
{.shortcuts}
| Shortcut | Action |
|---|---|
Ctrl Shift A | Find Action |
{.shortcuts}
地址
Level 10b, 144 Edward Street, Brisbane CBD(Headquarter)Level 2, 171 La Trobe St, Melbourne VIC 3000四川省成都市武侯区桂溪街道天府大道中段500号D5东方希望天祥广场B座45A13号Business Hub, 155 Waymouth St, Adelaide SA 5000Disclaimer
JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.
匠人学院网站上的所有内容,包括课程材料、徽标和匠人学院网站上提供的信息,均受澳大利亚政府知识产权法的保护。严禁未经授权使用、销售、分发、复制或修改。违规行为可能会导致法律诉讼。通过访问我们的网站,您同意尊重我们的知识产权。 JR Academy Pty Ltd 保留所有权利,包括专利、商标和版权。任何侵权行为都将受到法律追究。查看用户协议
© 2017-2025 JR Academy Pty Ltd. All rights reserved.
ABN 26621887572