zoukankan      html  css  js  c++  java
  • 入门Mac快捷键详细分类整理,包括Eclipse和Android Studio中一些常用的快捷键

    [通用]

    control(^)    

    shift(⇧)   ⬆️

    option/alt (⌥)

    command(⌘)

    fn 副功能键

     

    [效率]

    1.编辑

    control + space 切换输入法(改键:alt(⌥)+space可见  control+alt(⌥)+space快速切换)

    control+ command + space 打开系统表情

    shift+control+space 手写输入(改键:alt(⌥)+H )

    command+←/→(↑/↓) Home/End

    Fn+↑/↓ pageUp/pageDown

    command+]/[ 前进/回退 后翻页/前翻页

    command s/c/v/x 保存/拷贝/粘贴/剪切(只能剪切文件和文件夹,不能剪切应用程序)

    Fn+delete 反向删除

    control+D 快速删除当前行

    shift+command+←/→ 快速选中

    shift+alt(⌥)+←/→ 快速选中光标出关键字

    shift+←/→ 自定义选中

    command+. 智能提示

     

     

    2.系统功能

    command+space 打开spotlight搜索

    alt (⌥)+command+space 打开Finder

    alt (⌥)+command+D 打开/隐藏 Dock栏

     

    alt (⌥)+command+esc 打开强制退出应用程序

     

    shift+command+3/4 截全屏/选区截屏(+空格快速选中当前活动窗口)

    command+Q 退出程序

    command+M 最小化

    control (^)+command+F 全屏切换(会开启新桌面)

    command+(shift)+tab 当前桌面窗口切换

    command+H 隐藏活动窗口

     

     

    3.Finder文件管理器

    alt (⌥)+command+space 快速打开Finder

    command +K 打开远程服务器连接

    shift+command+G 快速前往文件目录

    command +(↑/↓) 上一级/下一级文件目录

     

    command+H 隐藏Finder

    alt (⌥)+command+H 隐藏其他

     

    /etc/hosts hosts目录

     

     

     

    [Safari]

    command+T 新建Tab

    command + W 关闭当前Tab

    command+N 新建窗口

    shift+command+N 新建无痕窗口

    command+]/[ 前进/回退 后翻页/前翻页

    control (^)+command+F Safari全屏切换(通)

    control (^)+command+1/2/3(L)  显示边栏书签/阅读列表/链接

    shift+/command+B 顶部显示书签栏

     

    command +L 快速打开收藏网址(位置)

    option/alt(⌥) +command +L 打开下载目录

     

    command+Y 历史记录

    command+D 快速收藏

    option/alt(⌥)+command+B 书签管理

     

     

    [eclipse]

    1.搜索

    control+alt(⌥)+H 当前Tab中查找引用

    alt(⌥)+command+G 查找工作空间中所有引用

    shift+command+L 快捷键全览

    2.效率

    command+/ 注释当前行

    control+command+/ 注释多行

    shift+command+ 取消多行注释

    alt(⌥)+/ 智能提示

    control+Q 回到上次编辑的位置

    shift+Fn+command+. 快速查找当前tab中警告代码位置

    command+]/[ (或alt(⌥)+command+←/→) 前进/回退 

    alt(⌥)+F7 切换当前Tab中不同功能视图

    shift+enter 在下方插入一行

    shift+command+enter 在上方插入一行

    alt(⌥)+(↑/↓) 当前行上移/下移

     

     

     

    [Android Studio]

    1.效率

    command+N 打开Generate,快速生成getter,setter,Constructor 等

    alt(⌥)+F1 快速选择当前编辑的要素(class,file,method,field)

    F12 把焦点移动到上一个聚焦的工具窗口

    command+F12 显示当前类文件的结构

    control+H 查看类继承层级结构

    shift+F6 快速重命名

    command+;/↓ 打开project structure面板

    shift+command+(↑/↓) 伸缩Tool工具条高度

    shift+command+’ 最大化最小化工具条面板

    alt()+command+F7 显示所有类,方法和变量(edite|find|show usages)

     

    [比较代码]

    command+D 项目面板中选中不同文件进行比较

     

    效率(高级)

    command+9 快速打开版本控制工具,显示删除,修改,未提交文件,这里可进行版本操作

    shift+alt(⌥)+C 快速查看project最近的改动

    Refactor|Copy 选中一个类后方便的复制该类(F5)

    F6 快速将一个静态内部类转换成高一层类

     

    搜索(导航)

    double shift 全局搜索

    command+O 致搜索自己的src包下面的类

    alt(⌥)+command+O 只搜索编辑器中Java源码中,的字段,方法,类(找文件时很管用)

    shift+command+O 当前项目中搜索文件,包括res,libs(找方法时很管用)

    control+(↑/↓) 快速在方法之间进行切换

    shift+command+R 全局搜索和替换

     

    搜索(阅码)

    command+B 跳转到定义

    alt()+space 快速查看定义

    command+P 查看方法参数(F1,查看文档帮助)

    alt(⌥)+F7 查找所有引用(Edit|Find|)

    shift+alt(⌥)+command+F7 在类中快捷查看引用

    shift+command+F7 查找方法中出现的关键字,光标在方法的throws和try,catch处快速完成代码

     

    command+-/+ 折叠当前块

    alt(⌥)+-/+ 逐级折叠

    shift+command+-/+ 折叠所有代码

     

    2.编辑

    control+space 智能补全

    alt(⌥)+shift+Space 显示智能提示下拉列表

    shift+command+enter 快速完成该行代码(complement current statement)

    Tab 动态生成典型代码模版

    command+N 快速生成代码(构造函数,getter,setter,toString等)

    command+J 打开动态代码模版(输入it 然后按command+J回显示所有包含it的模板)

    alt(⌥)+command+J 快速为选中代码包装代码模板

     

    alt(⌥)+command+L 快速整理代码

    control+shift+J 快速合并两行代码,并去除多余空格

    shift+command+V 打开粘贴板,选择最近复制的内容进行插入

     

    alt()enter 快速导入包(快速生成测试类等多用途...)

    shift+command+delete 回到上次编辑的位置

    command+D 快速复制当前行到下一行

    shift+alt(⌥)+(↑/↓) 当前行上移/下移

    shift+alt(⌥)+←/→ 快速选中光标出关键字

    command+(home/end) 移动到代码最顶部/底部

    Alt+mouse control 快速选中多行

    shift+command+enter/command+enter 在下面/上面插入空行,注意光标要在代码最前面

    Command/Fn/alt(⌥)+delete 1.2删除当前行/3删除一个关键字

     

    3.调试

    F8 逐行调试

    F7 进入自己的代码内部

    shift+F7 进入系统API代码内部

    shift+F8 跳出方法

    alt(⌥)+command+R 跳转到下一个断点

    shift+command+F8 查看所有断点

    control+D debug调试

    control+R Run运行

    control+alt(⌥)+R Run/Debug

    alt()+F8(↑) Debug时快速执行监视(按住alt,然后鼠标点击可快速计算选中代码执行结果)

     

    command+F8 插入断点Toogle Line Breakpoint

    shift+command+F8 编辑断点

    shift+alt(⌥)+command+F8 插入临时断点Toogle Temporary Line Breakpoint

     

    调试(BUG解决)

    F2/shift+F2 在语法错误syntax error 之间快速切换

    alt(⌥)+command+(↑/↓) 在编译错误compiler error之间跳转

     

    4.版本控制

    Schedule for Deletion /DeveloDocs/../ZaiNa/.idea/libraries

     

    5.编辑器

    control+`快速切换颜色、代码样式、快捷键等方案(view-switch scheme)

    command+`快速切换IDE多窗口

    alt(⌥)+command+Y 刷新

  • 相关阅读:
    Unlicensed ARC session – terminating!
    ArcGIS读取dem格式数据
    OCIEnvCreate 失败,返回代码为 -1的解决方法
    PowerDesigner设计的数据库 ORA-0092
    Oracle空间查询 ORA-28595
    PowerDesigner添加表注释
    C# 动态解析表达式
    远程桌面不能交互复制粘贴
    ArcGIS10.4 Runtime Error R6034
    ArcGIS Add-in ValidateAddInXMLTask”任务意外失败
  • 原文地址:https://www.cnblogs.com/David-Young/p/5652024.html
Copyright © 2011-2022 走看看