phpstorm原创
# win10 激活
文件\bin\phpstorm64.exe.vmoptions
最后添加代码:
-javaagent:D:\\ja-netfilter\\ja-netfilter.jar
D盘要存在文件ja-netfilter
,并做好相应的配置。
dns.conf
[DNS]
; put dns filter rules here
EQUAL,jetbrains.com
url.conf
[URL]
; put url filter rules here
PREFIX,https://account.jetbrains.com/lservice/rpc/validateKey.action
# mac terminal
pstorm .
快速在terminal
中打开phpstorm
。
# 设置
基础设置
文件扫描过滤
设置->editor -> File Types->在过滤文件或文件类型中添加: node_modules;
关掉一些没必要的框架提示
setting->Editor-> Live Templates,取消用不到的框架,如: Angular AngularJs
artisan 命令行 提示设置
Tools->Command line tool Support 新增命令。
choose tool 选择 tool based on symfony console,global(作用范围 全局).
Alias:artisan Path to PHP executable: php.exe Path to script: 选择artisan文件的位置
使用
通过设置好的Alt + x 唤出命令行界面,输入 artisan
自动定位左侧目录
- mac 顶级左侧目录 小齿轮,勾选
# 自定义快捷键
- 全屏 关键字 Full Screen mode Alt + F11
- 专注模式 关键字 Free mode Ctr + F11
- 执行命令 关键字 Tool Run Commadn Alt + x
- 快速选择 关键字 Add selection for Next Occurrence Alt + j
- 关掉左边tab 关键字 Close all to the Left shift + windows + w
- 关掉右边tab 关键字 Close all to the right ctl + alt + w
- 快速跳转到第XX行 关键字 Go to Line/Col ctl + g
# 快捷键
代码格式化 windows平台:Ctrl+Alt+L mac平台:Command+option(Alt)+L
快捷键 功能
Ctrl + B 跳转到变量声明处
Ctrl + E 最近打开的文件
Ctrl + N 查找类
Ctrl + Shift + N 查找文件
Ctrl + Alt + B 找所有的子类
Ctrl + Shift + B 找变量的类
Ctrl + Shift + F 在指定路径查找文本
Ctrl + Shift + V 选择要粘贴的文本
Shift + F2 快速定位到高亮错误或警告
Ctrl + T 从 Git 拉取最新代码
Ctrl + K 提交 Git 工作区代码
Alt + Shift + C 查看 Git 最近提交
Ctrl + Z 撤销
Ctrl + Shift + Z 重做
Ctrl + H 显示类结构图
Ctrl + F12 文件结构弹出
Ctrl + Shift + H 方法的层次结构
Ctrl + Alt + H 方法的调用层次
Ctrl + W 选中代码,连续按会有其他效果
Ctrl + Shift + W 减少当前选择到以前的状态
Ctrl + [ ] 光标移动到 {} 开头或结尾位置
Ctrl + Shift + [ ] 选中块代码,可以快速复制
Ctrl + Shift + U 选中的字符大小写转换
Ctrl + Shift + i 快速查看变量或方法定义源
Ctrl + Alt + F12 资源管理器打开文件夹
Ctrl + Alt ←/→ 返回上次编辑的位置
Alt + ←/→ 切换代码视图,标签切换
Alt + ↑/↓ 在方法间快速移动定位
Alt + 7 显示当前的类 / 函数结构
Ctrl + Shift + ↑/↓ 向上 / 下移动移动行、代码选中区域
Ctrl + ↑/↓ 向上 / 下移动编辑器显示区
ESC 光标返回编辑框
Shift + ESC 光标返回编辑框,关闭无用的窗口
Ctrl + F4 关闭当前的编辑器或选项卡
Ctrl + Tab 键切换选项卡和工具窗口
Ctrl + Alt + S 打开设置对话框
control + option + O 去掉多余的引用
Alt + j 快速选中
Alt + F12 terminal
Alt +x 命令行
command + shift + o 根据文件名,快速查询文件
command + o 根据类名,快速查询文件
command + alt + b 找到当剪类的所有子类
command + f 查找当前文件
command + r 查找替换
command + shift + f 关键字全局查找,更强大的查询器
command + shift + r 高级替换
command + e 打开最近的文件
alt + shift + c 查找最近修改的文件
command + shift + [ 向左切换tab页
command + shift + ] 向左切换tab页
command + shift + +,- 展开或缩起
command + . 折叠或展开选中的代码
command + d 复制当前行到下一行
command + / 行级注释
command + shift + / 块注释
command + alt + l 对当前文件进行格式化排版
command + 鼠标点击 跳到类或方法或变量等声明处
command + alt + 左方向键 向前代码跳转
command + alt + 右方向键 向后代码跳转
command + shift + 上方向键 当前行代码,向上移动一行
command + shift + 下方向键 当前行代码,向下移动一行
command + , 打开偏好设置
command + 数字【参考导航条上view > Tool Windows】
command + control + G 选中所有occurrences
control + G 选择项一处
# 插件
vue
theme UI (主题,安装完之后需要重启)
官网 https://plugins.jetbrains.com/plugin/8006-material-theme-ui/versions
- 设置 Tools->Material Theme
Laravel
bootstrap
Rainbow Brackets 彩虹括号
Indent Rainbow 对于不同层级缩进的空格标注不同的颜色
PHP Advanced AutoComplete php 的高级自动补全
PHP Annotations php 注释增强工具 github