IntelliJ IDEA for Mac在MacOS模式下的编译和运行快捷键(Compile and Run Shortcut)

快捷键 快捷键符号 英文名称 功能说明
Command + F9 ⌘F9 Make project 编译Project
Command + Shift + F9 ⌘⇧F9 Compile selected file, package or module 编译选择的文件、包或模块
Control + Option + R ⌃⌥R Select configuration and run 弹出 Run 的可选择菜单
Control + Option + D ⌃⌥D Select configuration and debug 弹出 Debug 的可选择菜单
Control + R ⌃R Rerun 再次运行,重新运行,会重新执行最近一次的 main 方法
Shift + Control + R ⇧⌃R Run 运行程序
Control + D ⌃D Redebug 重新调试运行,再次调试运行,会重新调试执行最近一次的 main 方法
Shift + Control + D ⇧⌃D Debug 调试运行程序
Control + Shift + R, Control + Shift + D ⌃⇧R, ⌃⇧D Run context configuration from editor 从编辑器运行上下文环境配置
Command + Option + Y ⌘⌥Y Synchronize,reload all from disk 同步、刷新

猜你喜欢

转载自blog.csdn.net/liaowenxiong/article/details/120229271