webstrom好处
- 自动保存
- 查看文件编辑历史vcs->Local History -> Show History(快捷键:ALT+~ -〉7)
mac 快捷键MAC苹果系统:
查找相关
command + shift + o 根据文件名查找文件
command + f 查找当前文档
command + r 替换当前文档
代码相关
command + d 副本当前行或选中的区块
command + option + t 将代码以某种格式包括起来
command + option + l 将代码格式化
command + shift + u 切换大小写
shift + return 在任意位置换行
shift + F6 高级修改,可快速修改光标所在的标签、变量、函数等
定位相关
option + f1 在左侧文件树中定位到当前打开文件
command + g 跳转到文档的某一行某一列
command + w 选中当前单词、行、区块等
command + y 删除整行
command + [ 移动光标到代码块前
command + ] 移动光标到代码块尾
command + -> 光标移到行尾
command + <- 光标移到行头
option + -> 以单词为单位移动光标
option + <- 以单词为单位移动光标
command + shift + [ 切换到上一个Tab页
command + shift + ] 切换到下一个Tab页
其他
command + + 折叠区块
command + - 展开区块
command + shift + + 折叠所有区块
command + shift + - 展开所有区块
command + p 显示参数信息
command + mouseover 显示主要信息
control + shift + f find in path
control + shift + j 合并行
control + shift + r replace in path
option + delete delete to word start
option + fn + delete delete to word end
快捷键windows平台
查找/代替
- ctrl+shift+N 通过文件名快速查找工程内的文件(必记)
- ctrl+shift+alt+N 通过一个字符快速查找位置(必记)
- ctrl+F 在文件内快速查找代码
- F3 查找下一个
- shift+F3 查找上一个
- ctrl+R 文件内代码替换
- ctrl+shift+R 指定目录内代码批量替换
- ctrl+shift+F 指定目录内代码批量查找
- ctrl+R 文件内代码替换
界面操作
- ctrl+shift+A 快速查找并使用编辑器所有功能(必记)
- alt+[0-9] 快速拆合功能界面模块(分屏)
- ctrl+shift+F12 最大区域显示代码(会隐藏其他的功能界面模块)
- alt+shift+F 将当前文件加入收藏夹
- ctrl+alt+s 打开配置窗口
- ctrl+tab 切换代码选项卡(还要进行此选择,效率差些)
- alt+<-或-> 切换代码选项卡
- ctrl+F4 关闭当前代码选项卡
代码编辑
- ctrl+D 复制当前行
- ctrl+W 选中单词
- ctrl+<-或-> 以单词作为边界跳光标位置
- alt+Insert 新建一个文件或其他
- ctrl+alt+L 格式化代码
- shift+tab/tab 减少/扩大缩进(可以在代码中减少行缩进)
- ctrl+Y 删除一行
- shift+enter 重新开始一行(无论光标在哪个位置)
导航
- esc 进入代码编辑区域
- alt+F1 查找代码在其他界面模块的位置,颇为有用(左侧文件树)(必记)
- ctrl+G 到指定行的代码
- ctrl+]/[ 光标到代码块的前面或后面
- alt+up/down 上一个/下一个方法
建议配置版本控制快捷键
- ctrl+C 提交代码
- ctrl+p 向远程版本库推送更新
- ctrl+G 到指定行的代码
- ctrl+]/[ 光标到代码块的前面或后面
- alt+up/down 上一个/下一个方法