zoukankan      html  css  js  c++  java
  • phpstorm常用快捷键

    mac电脑phpstorm快捷键

    Cornerstone无法查看log解决办法

    Cornerstone无法查看log解决办法

        command + o 按类名查找文件

        command + shift + o 按文件名查找文件
        command + a 全选
        command + c 复制
        command + v 粘贴
        command + z 撤消
        fn+command+f2 查看类结构

        command + e 列出最后打开的文件
        ctrl + shift + / 块注释
        shift + command + x
        shift + command + r 按文件名搜索对应文件所在路径
        shift + command + t 按类名搜索对应文件所在路径
        shift + command + c 复制当前文件所在路径
        选中左侧的文件名  shift + f6(mac需要同时按住键) 进行文件重命名

    windows下phpstorm的快捷键

    ctrl+shift+n查找文件

    ctrl+shift+f 在一个目录里查找一段代码(ctrl+f的升级版)

    ctr+shift+r 在一个目录里查找一段代码并替换(ctrl+r的升级版)

    CTRL+ALT ←/→  返回上次编辑的位置
    ALT+ ←/→  切换代码视图,标签切换
    ALT+ ↑/↓  在方法间快速移动定位

    ctrl+j插入活动代码提示
    ctrl+alt+t当前位置插入环绕代码
    alt+insert生成代码菜单
    ctrl+q查看代码注释
    ctrl+d复制当前行
    ctrl+y删除当前行
    shift+F6重命名
    ctrl+shift+u字母大小写转换
    ctrl+f查找
    ctrl+r替换
    F4查看源码

    ctrl+shift+i查看变量或方法定义源
    ctrl+g跳转行
    ctrl+alt+F12跳转至当前文件在磁盘上的位置
    alt+down查看下一个方法
    alt+up查看上一个方法
    ctrl+alt+l重新格式化代码
    ctrl+shift+downstatement向下移动
    ctrl+shift+upstatement向上移动
    alt+shift+downline向下移动
    alt+shift+upline向上移动
    ctrl+/行注释
    ctrl+shift+/块注释
    ctrl+shift+n打开工程中的文件
    ctrl+b跳到变量申明处
    ctrl+[]匹配 {}[]
    ctrl+shift+]/[选中块代码
    ctrl+x剪切行
    ctrl+shift+v复制多个文本
    alt+left/right标签切换
    ctrl+p显示默认参数
    ctrl+F12在当前类文件里快速查找方法 

    --------------------------------------------------------------

    phpstorm快捷键:
    // ctrl+shift+n 查找文件
    // ctrl+j 插入活动代码提示
    // ctrl+alt+t 当前位置插入环绕代码
    // alt+insert 生成代码菜单

    // ctrl+q 查看代码注释
    // ctrl+d 复制当前行
    // ctrl+y 删除当前行
    // shift+F6 重命名
    // ctrl+shift+u 字母大小写转换
    // ctrl+f 查找
    // ctrl+r 替换
    // F4 查看源码
    // ctrl+shift+i 查看变量或方法定义源
    // ctrl+g 跳转行
    // ctrl+alt+F12 跳转至当前文件在磁盘上的位置
    // alt+down 查看下一个方法
    // alt+up 查看上一个方法
    // ctrl+alt+l 重新格式化代码
    // ctrl+shift+down statement向下移动
    // ctrl+shift+up statement向上移动
    // alt+shift+down line向下移动
    // alt+shift+up line向上移动
    // ctrl+/ 行注释
    // ctrl+shift+/ 块注释

    // ctrl+shift+n 打开工程中的文件
    // ctrl+b 跳到变量申明处
    // ctrl+[] 匹配 {}[]
    // ctrl+shift+]/[ 选中块代码
    ....
    // ctrl+x 剪切行
    // ctrl+shift+v 复制多个文本
    // alt+left/right 标签切换
    // ctrl+p 显示默认参数
    // ctrl+F12 在当前类文件里快速查找方法

    Mac基本按键解释:

    ⌘——Command
    
    ⌃ ——Control
    
    ⌥——Option/Alt
    
    ⇧——Shift
    
    ⇪——Caps Lockfn——功能键就是fn  

    编辑功能

    Command+alt+T 用 (if..else, try..catch, for, etc.)包住  
    Command+/ 注释/取消注释的行注释  
    Command+alt+/ 注释/取消注释与块注释  
    alt+↑ 向上选取代码块  
    alt+↓ 向下选取代码块  
    Command+alt+L 格式化代码  
    tab,shift+tab 调整缩进  
    Control+alt+I 快速调整缩进  
    Command+C 复制  
    Command+X 剪切  
    Command+V 粘贴  
    Command+shift+V 从剪贴板里选择粘贴  
    Command+D 复制代码副本  
    Command+delete 删除当前行  
    Control+Shift+J 清除缩进变成单行  shift+回车 快速换行  
    Command+回车 换行光标还在原先位置  
    Command+shift+U 大小写转换  
    Command+shift+[,Command+shift+] 文件选项卡快速切换  
    Command+加号,Command+减号 收缩代码块  
    Command+shift+加号,Command+shift+减号 收缩整个文档的代码块  
    Command+W 关闭当前文件选项卡  
    alt+单击 光标在多处定位  
    Control+shift+J 把下面行的缩进收上来  shift + F6 高级修改,可快速修改光标所在的标签、变量、函数等  
    alt+/ 代码补全  

    快捷调试

    Control+alt+R 运行项目  
    Command+Control+R 运行Debug  
    Command+F8 添加断点  
    Command+shift+F8 打开断点列表  

    定点导航

    Command+O 跳转到某个类  
    Command+shift+O 跳转到某个文件  
    Command+alt+O 跳转到某个符号  
    Control+←,Control+→ 转到上/下一个编辑器选项卡  
    F12 打开之前打开的工具窗口(TODO、终端等)  
    Command+L 跳转行  
    Command+E 弹出最近文件  
    Command+alt+←,Command+alt+→ 向前向后导航到代码块交接处(一般是空行处)  
    Command+shift+delete 导航到上一个编辑位置的位置  
    Command+B 跳转到变量声明处  
    Control+J 获取变量相关信息(类型、注释等,注释是拿上一行的注释)  
    Command+Y 小浮窗显示变量声明时的行  
    Command+[,Command+] 光标现在的位置和之前的位置切换  
    Command+F12 文件结构弹出式菜单  
    alt+H 类的层次结构  
    F2,shift+F2 切换到上下一个突出错误的位置  
    Command+↑ 跳转到导航栏  
    F3 添加书签  
    alt+F3 添加带助记的书签  
    alt+1,alt+2… 切换到相应助记的书签位置  
    Command+F3 打开书签列表  

    VCS/本地历史记录

    control+V 打开VST小浮窗  
    Command+K 提交项目  
    Command+T 更新项目  
    alt+shift+C 打开最近修改列表  

    搜索和替换

    Command+F 搜索  
    Command+R 替换  
    Command+G 查找下一个  
    Command+shift+G 查找下一个  
    Command+shift+F 按路径搜索  
    Command+shift+R 按路径替换  

    选中文字的搜索

    Command+F7 向声明的地方搜索并选中  
    Command+shift+F7 打开搜索框进行搜索  
    Command+alt+F7 打开小浮窗显示搜索列表  

    对项目文件的操作(重构)

    F5 复制文件到某个目录  
    F6 移动文件到某个目录  
    Command+delete 安全删除  shift+F6 重命名  

    全局快捷

    双击shift 弹出小浮窗搜索所有
    Command+~切换项目 Command+shift+~ 反向切换项目 (在打开的不同项目中切换)  
    Command+shift+A 整个工程的查找操作  
    Command+1,Command+2… 打开各种工具窗口  
    alt+shift+F 把文件添加到收藏夹  
    alt+shift+I 打开项目描述  
    alt+~ 快速切换当前计划  
    Command+, 设置编辑器  
    Control+Tab 选项卡和工具窗口之间进行切换  
    alert+回车 显示npm版本升级列表

    ps:本篇文章转自他人,仅供自己学习

  • 相关阅读:
    Codeforces467C George and Job
    Codeforces205E Little Elephant and Furik and RubikLittle Elephant and Furik and Rubik
    Codeforce205C Little Elephant and Interval
    51nod1829 函数
    51nod1574 排列转换
    nowcoder35B 小AA的数列
    Codeforce893E Counting Arrays
    gym101612 Consonant Fencity
    CodeForces559C Gerald and Giant Chess
    CodeForces456D A Lot of Games
  • 原文地址:https://www.cnblogs.com/chenhaoyu/p/6653039.html
Copyright © 2011-2022 走看看