feat: add docs/phpstorm.md. #571

This commit is contained in:
jaywcjlove 2024-03-15 21:58:44 +08:00
parent 20b3a1969d
commit 359b81a44f
3 changed files with 181 additions and 0 deletions

View File

@ -215,6 +215,7 @@ Quick Reference
[Google Chrome](./docs/google-chrome.md)<!--rehype:style=background: rgb(29 116 232);--> [Google Chrome](./docs/google-chrome.md)<!--rehype:style=background: rgb(29 116 232);-->
[IntelliJ IDEA](./docs/intelli-j-idea.md)<!--rehype:style=background: rgb(223 148 0);&class=tag&data-lang=Java--> [IntelliJ IDEA](./docs/intelli-j-idea.md)<!--rehype:style=background: rgb(223 148 0);&class=tag&data-lang=Java-->
[PyCharm](./docs/pycharm.md)<!--rehype:style=background: rgb(36 215 137);&class=tag&data-lang=Python--> [PyCharm](./docs/pycharm.md)<!--rehype:style=background: rgb(36 215 137);&class=tag&data-lang=Python-->
[PhpStorm](./docs/phpstorm.md)<!--rehype:style=\-\-bg\-opacity: 0.75;background-image: linear-gradient(to left, rgba(255 106 172 / var(\-\-bg\-opacity)), rgba(183 173 255 / var(\-\-bg\-opacity)));-->
[Sketch](./docs/sketch.md)<!--rehype:style=background: rgb(223 148 0);&class=tag&data-lang=macOS--> [Sketch](./docs/sketch.md)<!--rehype:style=background: rgb(223 148 0);&class=tag&data-lang=macOS-->
[Sublime Text](./docs/sublime-text.md)<!--rehype:style=background: rgb(223 148 0);--> [Sublime Text](./docs/sublime-text.md)<!--rehype:style=background: rgb(223 148 0);-->
[VSCode](./docs/vscode.md)<!--rehype:style=background: rgb(91 163 230);--> [VSCode](./docs/vscode.md)<!--rehype:style=background: rgb(91 163 230);-->

3
assets/phpstorm.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" height="1em" width="1em" viewBox="0 0 256 256">
<defs><linearGradient id="IconifyId18e425c03bba7dc7a0" x1="40.196%" x2="55.577%" y1="64.058%" y2="47.965%"><stop offset="0%" stop-color="#AF1DF5"/><stop offset="21%" stop-color="#BC20E4"/><stop offset="63%" stop-color="#DD29B8"/><stop offset="100%" stop-color="#FF318C"/></linearGradient><linearGradient id="IconifyId18e425c03bba7dc7a1" x1="42.885%" x2="63.378%" y1="78.603%" y2="-4.057%"><stop offset="2%" stop-color="#6B57FF"/><stop offset="42%" stop-color="#B74AF7"/><stop offset="75%" stop-color="#FF318C"/></linearGradient><linearGradient id="IconifyId18e425c03bba7dc7a2" x1="73.258%" x2="32.049%" y1="102.209%" y2="-3.688%"><stop offset="0%" stop-color="#293896"/><stop offset="8%" stop-color="#3B3AA2"/><stop offset="29%" stop-color="#6740C0"/><stop offset="49%" stop-color="#8A44D8"/><stop offset="68%" stop-color="#A347E9"/><stop offset="86%" stop-color="#B249F3"/><stop offset="100%" stop-color="#B74AF7"/></linearGradient><linearGradient id="IconifyId18e425c03bba7dc7a3" x1="62.87%" x2="39.747%" y1="72.446%" y2="45.568%"><stop offset="2%" stop-color="#6B57FF"/><stop offset="78%" stop-color="#B74AF7"/></linearGradient></defs><path fill="url(#IconifyId18e425c03bba7dc7a0)" d="M141.307 45.013L132.773 19.2L43.68 0L0 49.413l48 24.56v-28.96z"/><path fill="url(#IconifyId18e425c03bba7dc7a1)" d="m48 61.813l-48-12.4l24.4 146.56l23.52-.186z"/><path fill="url(#IconifyId18e425c03bba7dc7a2)" d="M208 45.013h-83.493L158.053 15.2l64.64 12L256 109.973l-47.973 47.654z"/><path fill="url(#IconifyId18e425c03bba7dc7a3)" d="M208.053 108.88L208 205.013H70.56l3.547 20.907L160.4 256l95.6-57.227z"/><path d="M47 43.771h162v162H47z"/><path fill="#FFF" d="M67.947 175.093h60v10h-60zm52.32-58.133l7.813-9.6a27.573 27.573 0 0 0 17.973 7.307c5.334 0 8.694-2.16 8.694-5.68v-.16c0-1.364-.343-2.46-1.422-3.451l-.242-.211a7.3 7.3 0 0 0-.557-.414l-.315-.204a11.058 11.058 0 0 0-.522-.302l-.382-.2a15.25 15.25 0 0 0-.201-.1l-.425-.198a20.305 20.305 0 0 0-.454-.198l-.484-.199a27.087 27.087 0 0 0-.254-.1l-.531-.198a34.56 34.56 0 0 0-.278-.1l-.58-.201l-.303-.101l-.63-.203l-.667-.205l-.702-.208c-.12-.035-.242-.07-.365-.104l-.758-.212l-.795-.215l-2.44-.633l-.766-.205l-1.126-.31l-.368-.105l-.728-.212l-.714-.215a67.125 67.125 0 0 1-.351-.11l-.694-.222l-.68-.226a50.843 50.843 0 0 1-.334-.116l-.658-.235l-.643-.24a23.119 23.119 0 0 1-.316-.124l-.622-.251l-.606-.259c-6.286-2.757-10.049-6.826-10.165-14.88l-.002-.573c0-10.792 8.59-17.981 20.68-18.131l.386-.003a34.667 34.667 0 0 1 22.347 7.654l-6.88 9.973a28.107 28.107 0 0 0-15.653-5.92c-5.067 0-7.734 2.32-7.734 5.333v.187c0 2.23.852 3.644 3.457 4.932l.414.197c.143.066.29.131.443.196l.472.195l.502.195l.533.195l.563.196l.596.198l.629.199l.662.202l1.057.308l1.137.318l1.219.328l1.303.341c.287.075.572.151.853.228l.836.232c.275.078.548.157.817.237l.8.242c.131.04.262.082.392.123l.772.25l.754.256c.372.13.737.262 1.096.397l.707.273c7.675 3.042 11.938 7.422 12.063 15.448l.003.554c0 11.947-9.12 18.667-22.106 18.667a38.27 38.27 0 0 1-25.52-9.627M68 65.333h24.533c14.15 0 22.786 8.312 22.958 20.354l.002.526c0 13.867-10.8 21.067-24.24 21.067h-9.92v17.973H68zm23.627 30.214c6.586 0 10.453-3.92 10.453-9.067v-.16c0-5.92-4.107-9.093-10.667-9.093h-10.08v18.32z"/>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

177
docs/phpstorm.md Normal file
View File

@ -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)_