├── README.md ├── debugging.md ├── editing.md ├── general.md ├── navigation.md ├── refactoring.md ├── running.md ├── search-replace.md ├── usage-search.md └── vcs-local-history.md /README.md: -------------------------------------------------------------------------------- 1 | PhpStorm-Keymap-Mac 2 | === 3 | 4 | > PhpStorm For Mac 默认快捷键参考. 5 | 6 | ### 符号注释 7 | 1 | 2 | 3 | 4 | 5 | 6 8 | --- | --- | --- | ---| --- | --- 9 | ⌘ Command | ⎋ Escape | ⏎ Enter / Return | ⌥ Option / Alt | ⌃ Control | ⌦ Backspace | 10 | ⌫ Delete | ⇧ Shift | ⇪ CapsLock | ⇥ Tab | ⇵ Arrow keys | ⇆ | 11 | 12 | ### 模块 13 | 14 | - [Editing](./editing.md) 15 | - [Search/Replace](./search-replace.md) 16 | - [USage Search](./usage-search.md) 17 | - [Running](./running.md) 18 | - [Debugging](./debugging.md) 19 | - [Navigation](./navigation.md) 20 | - [Refactoring](./refactoring.md) 21 | - [VCS/Local History](./vcs-local-history.md) 22 | - [General](./general.md) 23 | -------------------------------------------------------------------------------- /debugging.md: -------------------------------------------------------------------------------- 1 | Debugging 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | F8 | Step over | 7 | 2 | F7 | Step into | 8 | 3 | ⇧F7 | Smart step into | 9 | 4 | ⇧F8 | Step out | 10 | 5 | ⌥F9 | Run to cursor | 11 | 6 | ⌥F8 | Evaluate expression | 12 | 7 | ⌘⌥R | Resume program | 13 | 8 | ⌘F8 | Toggle breakpoint | 14 | 9 | ⌘⇧F8 | View breakpoints | 15 | -------------------------------------------------------------------------------- /editing.md: -------------------------------------------------------------------------------- 1 | Editing 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌃Space | Basic code completion (the name of any class, method or variable) | 7 | 2 | ⌘⇧⏎ | Complete statement | 8 | 3 | ⌘P | Parameter info (within method call arguments) | 9 | 4 | ⌃J or Mid. button click | Quick documentation lookup | 10 | 5 | ⌘ + mouse over code | Brief Info | 11 | 6 | ⌘F1 | Show descriptions of error or warning at caret | 12 | 7 | ⌘N,⌃⏎,⌃N | Generate code... (Getters, Setters, Constructors) | 13 | 8 | ⌃O | Override methods | 14 | 9 | ⌃I | Implement methods | 15 | 10 | ⌘⌥T | Surround with... (if..else, try..catch, for, etc.) | 16 | 11 | ⌘/ | Comment/uncomment with line comment | 17 | 12 | ⌘⌥/ | Comment/uncomment with block comment | 18 | 13 | ⌥↑ | Select successively increasing code blocks | 19 | 14 | ⌥↓ | Decrease current selection to previous state | 20 | 15 | ⌃⇧Q | Context info | 21 | 16 | ⌥⏎ | Show intention actions and quick-fixes | 22 | 17 | ⌘⌥L | Reformat code | 23 | 18 | ⌃⌥I | Auto-indent line(s) | 24 | 19 | ⇥,⇧⇥ | Indent/unindent selected lines | 25 | 20 | ⌘X | Cut current line or selected block to clipboard | 26 | 21 | ⌘C | Copy current line or selected block to clipboard | 27 | 22 | ⌘V | Paste from clipboard | 28 | 23 | ⌘⇧V | Paste from recent buffers... | 29 | 24 | ⌘D | Duplicate current line or selected block | 30 | 25 | ⌘⌫ | Delete line at caret | 31 | 26 | ⌃⇧J | Join lines | 32 | 27 | ⌘⏎ | Split line | 33 | 28 | ⇧⏎ | Start new line | 34 | 29 | ⌘⇧U | Toggle case for word at caret or selected block | 35 | 30 | ⌘⇧],⌘⇧[ | Select till code block end/start | 36 | 31 | ⌥⌦ | Delete to word end | 37 | 32 | ⌥⌫ | Delete to word start | 38 | 33 | ⌘+,⌘- | Expand/collapse code block | 39 | 34 | ⌘⇧+ | Expand all | 40 | 35 | ⌘⇧- | Collapse all | 41 | 36 | ⌘W | Close active editor tab | 42 | -------------------------------------------------------------------------------- /general.md: -------------------------------------------------------------------------------- 1 | General 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⇧⌘A | Find Action | 7 | 2 | ⌘0...⌘9 | Open corresponding tool window | 8 | 3 | ⌘⇧F12 | Toggle maximizing editor | 9 | 4 | ⌥⇧F | Add to Favorites | 10 | 5 | ⌥⇧I | Inspect current file with current profile | 11 | 6 | ⌃§ or ⌃` | Quick switch current scheme | 12 | 7 | ⌘, | Open Settings dialog | 13 | 8 | ⌃⇥ | Switch between tabs and tool window | 14 | -------------------------------------------------------------------------------- /navigation.md: -------------------------------------------------------------------------------- 1 | Navigation 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌘O | Go to class | 7 | 2 | ⌘⇧O | Go to file | 8 | 3 | ⌘⌥O | Go to symbol | 9 | 4 | ⌃⟵,⌃⟶ | o to next/previous editor tab | 10 | 5 | F12 | Go back to previous tool window | 11 | 6 | ⎋ | Go to editor (from tool window) | 12 | 7 | ⇧⎋ | Hide active or last active window | 13 | 8 | ⌘⇧F4 | Close active run/messages/find/... tab | 14 | 9 | ⌘L | Go to line | 15 | 10 | ⌘E | Recent files popup | 16 | 11 | ⌘⌥⟵,⌘⌥⟶ | Navigate back/forward | 17 | 12 | ⌘⇧⌫ | Navigate to last edit location | 18 | 13 | ⌥F1 | Select current file or symbol in any view | 19 | 14 | ⌘B or ⌘Click | Go to declaration | 20 | 15 | ⌘⌥B | Go to implementation(s) | 21 | 16 | ⌥Space,⌘Y | Open quick definition lookup | 22 | 17 | ⌃⇧B | Go to type declaration | 23 | 18 | ⌘U | Go to super-method/super-class | 24 | 19 | ⌃↑,⌃↓ | Go to previous/next method | 25 | 20 | ⌘],⌘[ | Move to code block end/start | 26 | 21 | ⌘F12 | File structure popup | 27 | 22 | ⌃H | Type hierarchy | 28 | 23 | ⌘⇧H | Method hierarchy | 29 | 24 | ⌃⌥H | Call hierarchy | 30 | 25 | F2,⇧F2 | Next/previous highlighted error | 31 | 26 | F4/⌘↓ | Edit source / View source | 32 | 27 | ⌥Home | Show navigation bar | 33 | 28 | F3 | Toggle bookmark | 34 | 29 | ⌥F3 | Toggle bookmark with mnemonic | 35 | 30 | ⌃0...⌃9 | Go to numbered bookmark | 36 | 31 | ⌘F3 | Show bookmarks | 37 | -------------------------------------------------------------------------------- /refactoring.md: -------------------------------------------------------------------------------- 1 | Refactoring 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | F5 | Copy | 7 | 2 | F6 | Move | 8 | 3 | ⌘Delete | Safe Delete | 9 | 4 | ⇧F6 | Rename | 10 | 5 | ⌘⌥N | Inline Variable | 11 | 6 | ⌘⌥M | Extract Method | 12 | 7 | ⌘⌥V | Extract Variable | 13 | 8 | ⌘⌥F | Extract Field | 14 | 9 | ⌘⌥C | Extract Constant | 15 | -------------------------------------------------------------------------------- /running.md: -------------------------------------------------------------------------------- 1 | Running 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌃⌥R | Select configuration and run | 7 | 2 | ⌃⌥D | Select configuration and debug | 8 | 3 | ⌃R | Run | 9 | 4 | ⌃D | Debug | 10 | 5 | ⌃⇧R,⌃⇧D | Run context configuration from editor | 11 | 6 | ⌘⇧x | Run command line | 12 | -------------------------------------------------------------------------------- /search-replace.md: -------------------------------------------------------------------------------- 1 | Search/Replace 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌘F | Find | 7 | 2 | ⌘G | Find next | 8 | 1 | ⌘⇧G | Find previous | 9 | 1 | ⌘R | Replace | 10 | 1 | ⌘⇧F | Find in path | 11 | 1 | ⌘⇧R | Replace in path | 12 | -------------------------------------------------------------------------------- /usage-search.md: -------------------------------------------------------------------------------- 1 | Usage Search 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌥F7/⌘F7 | Find usages / Find usages in file | 7 | 2 | ⌘⇧F7 | Highlight usages in file | 8 | 3 | ⌘⌥F7 | Show usages | 9 | -------------------------------------------------------------------------------- /vcs-local-history.md: -------------------------------------------------------------------------------- 1 | VCS/Local History 2 | === 3 | 4 | No. | 组合键 | 描述 5 | --- | --- | --- 6 | 1 | ⌃V | ‘VCS’ quick popup | 7 | 1 | ⌘K | Commit project to VCS | 8 | 1 | ⌘T | Update project from VCS | 9 | 1 | ⌥⇧C | View recent changes | 10 | --------------------------------------------------------------------------------