forked from jaywcjlove/reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
docs/phpstorm.md
. jaywcjlove#571
- Loading branch information
1 parent
20b3a19
commit 359b81a
Showing
3 changed files
with
181 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
PhpStorm 键盘快捷键 | ||
=== | ||
|
||
在 JetBrains PhpStorm 中发现的 96 个键盘快捷键的可视化备忘表 | ||
|
||
键盘快捷键 | ||
--- | ||
|
||
### 编辑 | ||
<!--rehype:wrap-class=row-span-5--> | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Ctrl` `Space` | 基本代码补全 | ||
`Alt` `Enter` | 显示意图操作和快速修复 | ||
`Ctrl` `P` | 参数信息(在方法调用参数中) | ||
`Ctrl` `Q` | 快速文档查询 | ||
`Ctrl` `(鼠标悬停在代码上)` | 简要信息 | ||
`Alt` `Insert` | 生成代码...(Getters、Setters、Constructors) | ||
`Ctrl` `O` | 覆盖方法 | ||
`Ctrl` `I` | 实现方法 | ||
`Ctrl` `Alt` `T` | 包围...(if..else, try..catch, for, 等) | ||
`Ctrl` `/` | 使用行注释进行注释/取消注释 | ||
`Ctrl` `Shift` `/` | 使用块注释进行注释/取消注释 | ||
`Ctrl` `W` | 逐渐选择增加的代码块 | ||
`Ctrl` `Shift` `W` | 将当前选择减少到先前的状态 | ||
`Ctrl` `Alt` `L` | 重新格式化代码 | ||
`Ctrl` `Alt` `I` | 自动缩进行 | ||
`Ctrl` `D` | 复制当前行或选定的块 | ||
`Ctrl` `Y` | 删除插入符处的行 | ||
`Ctrl` `Shift` `J` | 智能行合并(仅限 HTML 和 JavaScript) | ||
`Ctrl` `Enter` | 智能行拆分(仅限 HTML 和 JavaScript) | ||
`Shift` `Enter` | 开始新行 | ||
`Ctrl` `Shift` `U` | 切换插入符处单词或选定的块的大小写 | ||
`Ctrl` `Shift` `[` | 选择至代码块开头 | ||
`Ctrl` `Shift` `]` | 选择至代码块结尾 | ||
`Ctrl` `Delete` | 删除至字词末尾 | ||
`Ctrl` `Backspace` | 删除至字词开头 | ||
`Ctrl` `+/-` | 展开/折叠代码块 | ||
`Ctrl` `F4` | 关闭活动编辑器标签 | ||
`Ctrl` `Shift` `V` | 从历史粘贴 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 调试 | ||
<!--rehype:wrap-class=row-span-2--> | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`F8` | 逐步执行 | ||
`F7` | 逐步进入 | ||
`Shift` `F8` | 逐步退出 | ||
`Alt` `F8` | 评估表达式 | ||
`F9` | 恢复程序 | ||
`Ctrl` `F8` | 切换断点 | ||
`Ctrl` `Shift` `F8` | 查看断点 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 运行 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Shift` `F10` | 运行 | ||
`Shift` `F9` | 调试 | ||
`Ctrl` `Shift` `F10` | 从编辑器运行上下文配置 | ||
`Ctrl` `Shift` `X` | 运行命令行 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 搜索/替换 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Ctrl` `F/R` | 查找/替换 | ||
`F3` | 查找下一个 | ||
`Shift` `F3` | 查找上一个 | ||
`Ctrl` `Shift` `F/R` | 在路径中查找/替换 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 使用搜索 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Alt` `F7` | 查找用法 | ||
`Ctrl` `F7` | 在文件中查找用法 | ||
`Ctrl` `Shift` `F7` | 在文件中突出显示用法 | ||
`Ctrl` `Alt` `F7` | 显示用法 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 导航 | ||
<!--rehype:wrap-class=row-span-3--> | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Ctrl` `N` | 转到类 | ||
`Ctrl` `Shift` `N` | 转到文件 | ||
`Ctrl` `Shift` `Alt` `N` | 转到符号 | ||
`Ctrl` `G` | 转到行 | ||
`Alt` `Left/Right` | 转到下一个/上一个编辑器标签 | ||
`Esc` | 转到编辑器(从工具窗口) | ||
`Ctrl` `E` | 最近的文件弹出窗口 | ||
`Ctrl` `Alt` `Left/Right` | 后退/前进导航 | ||
`Ctrl` `Shift` `Backspace` | 转到上次编辑位置 | ||
`Alt` `F1` | 在任何视图中选择当前文件或符号 | ||
`Ctrl` `B` | 转到声明 | ||
`Ctrl` `Alt` `B` | 转到实现 | ||
`Ctrl` `Shift` `I` | 打开快速定义查找 | ||
`Ctrl` `Shift` `B` | 转到类型声明 | ||
`Ctrl` `U` | 转到超类/超方法 | ||
`Alt` `Up/Down` | 转到上一个/下一个方法 | ||
`Ctrl` `]/[` | 移动至代码块结束/开始 | ||
`F2` | 下一个突出显示的错误 | ||
`Shift` `F2` | 上一个突出显示的错误 | ||
`F4` | 编辑/查看源码 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 重构 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`F5/F6` | 复制/移动 | ||
`Alt` `Delete` | 安全删除 | ||
`Shift` `F6` | 重命名 | ||
`Ctrl` `Alt` `N` | 内联变量 | ||
`Ctrl` `Alt` `M/V/F/C` | 提取方法/变量/字段/常量 | ||
`Ctrl` `Alt` `Shift` `T` | 重构此处(显示所有可用的重构) | ||
<!--rehype:className=shortcuts--> | ||
|
||
### VCS/本地历史 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Alt` <code>\`</code> | VCS 快速弹出窗口 | ||
`Ctrl` `K` | 提交项目到 VCS | ||
`Ctrl` `T` | 从 VCS 更新项目 | ||
`Alt` `Shift` `C` | 查看最近的更改 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 通用 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Shift x2` | 到处搜索 | ||
`Ctrl` `Shift` `A` | 查找操作 | ||
`Alt` `1-9` | 打开对应的工具窗口 | ||
`Ctrl` `Alt` `F11` | 切换全屏模式 | ||
`Ctrl` `Shift` `F12` | 切换最大化编辑器 | ||
`Alt` `Shift` `F` | 添加到收藏夹 | ||
`Alt` `Shift` `I` | 使用当前配置文件检查当前文件 | ||
`Ctrl` `Alt` `S` | 打开设置对话框 | ||
`Ctrl` `Tab` | 在标签和工具窗口之间切换 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 模板/代码片段 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Ctrl` `J` | 插入模板 | ||
`eco` | 'echo' 语句 | ||
`fore` | foreach(iterable_expr as $value) {...} | ||
`forek` | foreach(iterable_expr as $key => $value) {...} | ||
`inc/inco` | 'include'/'include_once' 语句 | ||
`prif` | 私有函数 | ||
`prof` | 受保护函数 | ||
`pubf` | 公共函数 | ||
`rqr/rqro` | 'require'/'require_once' 语句 | ||
<!--rehype:className=shortcuts--> | ||
|
||
### 其他 | ||
|
||
快捷键 | 动作 | ||
---|--- | ||
`Ctrl` `Shift` `A` | 查找操作 | ||
<!--rehype:className=shortcuts--> | ||
|
||
另见 | ||
---- | ||
|
||
- [PhpStorm 键盘快捷键](https://resources.jetbrains.com/storage/products/phpstorm/docs/PhpStorm_ReferenceCard.pdf) _(resources.jetbrains.com)_ |