使用 macOS 算起来也差不多快一个月了,总结起来就是一个字:爽!🤦♂️真是不得不感叹下苹果精湛的工艺。在当天重装系统后就装上了AS,讲道理,使用起来真是不习惯,尤其是快捷键,之前在 windows 平台一直使用的是 Eclipse 的快捷键,所以将快捷键切换为 Mac OS X 后,还真是回到了解放前,看了下设置里的keymap 也是摸不着头脑,只好上网搜了一下日常多频使用的一些快捷键,这里做个记录,免得有时候忘了又得去找。。
| desc | Eclipse(Windows) | mac OS |
|---|---|---|
| 格式化代码 | ctrl + shift + F | command + option + L |
| 移动整行代码 | alt + ⬆️ or ⬇️ | option + shift + ⬆️ or ⬇️ |
| 移动整块代码 | alt + ⬆️ or ⬇️ | command + shift+⬆️ or ⬇️ |
| 查找 | ctrl + F | command + F |
| 查看调用 | ctrl + G | option + Fn + F7 |
| 查找方法 | ctrl + o | command + Fn + F12 |
| 重命名 | alt + shift + R | shift + F6 |
| 注释行 | ctrl + / | command + / |
| 注释块 | ctrl + shift + / | command + option + / |
| 移动光标至行首尾 | home or end | command + ⬅️ or ➡️ |
| Back | alt + ⬅️ | option + command + ➡️或command + [ |
| Forward | alt + ➡️ | option + command + ➡️或command + ] |
PS:Hexo 的 Markdown 对表格的支持好像比起 GitHub以及 MacDown 不一样。。如果将表格两边的 | 忽略则不会渲染出来,即必须是 |xxx|xxx| 而不能是 xxx|xxx。