0

常用的快捷键

 1 year ago
source link: https://wendaoit.github.io/2022/11/07/IDEA%E5%BF%AB%E6%8D%B7%E9%94%AE/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

MAC中快捷键

快捷键 中文描述
通知中心往下拉。勿扰快速开关
ctrl+数字键 跳转到指定的数字书签
cmd+2 显示收藏窗口 包括书签、收藏、断点
ctrl+shift+数字键 定义数字书签
Option+cmd+t 快速生成if、trycatch语句
cmd +shift +U 快速转换为大小写
cmd+shift+。 使用Finder查看Mac隐藏文件(.git等)
cmd+R 在当前界面查找并替换
cmd+F 在当前界面查找
ctrl + option + o 快速清除无用包
CMD+7 显示该类中所有的方法
Shift +↑ 逐行选中
cmd+E 最近文件
Option + 方向键上 连续选中代码块
Command + N 生成代码(getter、setter、构造函数、hashCode/equals,toString)
cmd+opt+⬅️/➡️ 代码跳转

选中CTRL+shift+左右

调整位置CTRL+shift+上下

主方法psvm

输出sout

Ctrl+n 查找xxx底层类和方法

Ctrl+/ 快速创建注释

Ctrl+F9 重新编译

弹出的方法大纲的快捷键是
MAC [Command + F12]
WIN [Ctrl + F12]

ctrl+shift+L整理代码

CTRL+shift+F全局搜索

实习收获:

  • IDEA快速开发:

    \1. //TODO

    \2. CTRL+shift+1/2/3快速标记 CTRL+1/2/3 快速跳转

    \3. 查找 变量或者方法在代码中的使用find usages ALT+F7

    \4. CTRL+shift+alt+C 直接复制对应代码行数

    \5. CTRL+SHIFT+N

    \6. CTRL+E打开最近关闭的文件

    \7. 删除行快捷键 ctrl+Y

    \8. 清除无用import包快捷键 ctrl+alt+o


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK