苹果电脑的键盘是没有 Home / End 两个键的,通常是使用 Command + -> 和 Command + <- 使用非常不便。
下面介绍一下如果设置 Home 、End 两个按键:
Xcode 设置方法,首先 Command + ,进入 Key Bindings 栏位。
Filter 中数据 Move to 找到 Scroll to Beginning of Document 先释放 Home 键,修改为 Ctrl + Home, Scroll to End of Document 修改为 Ctrl + End.
现在找到 Move to Beginning of Line 修成 Home

现在找到 Move to End of Line 修成 End

Eclipse 设置方法
找到 Line Start 和 Line End
Line Start 默认是 Command + <- 现在修改成 Home 键
Line End 默认是 Command + -> 现在修改成 End 键


