JDP 發表於 2014-3-17 16:03:45

Xcode 改變 Home & End Hot-Key

從 Windows 跳到使用 OS X 超不習慣,連使用XCode寫程式都快瘋掉了!

Xcode > Preferences > Key Bindings > Text Key Bindings

Selection下
    Move to beginning of line 設成 Home
    Move to end of line 設成 End
    Move to Left End of Line Extending Selection 設成 Shift+Home
    Move to Right End of Line Extending Selection 設成 Shift+End
    Move to Beginning of Document Extending Selection 取消 Shift+Home 部份(按-)
    Move to End of Document Extending Selection 取消 Shift+End 部份(按-)
Scrolling下
    Scroll to Beginning of Document 設成 ctrl+Home
    Scroll to End of Document 設成 ctrl+End
Undo/Redo下
    Undo 設成 Ctrl+Z
    Redo 設成 Ctrl+Y

在XCode中與Windows中Home & End鍵同等功能的是按Command+左右鍵,如果是在字串之前往前往後跳,則是按Alt+左右鍵

Reference:
Change how home and end keys work in XCode
http://stackoverflow.com/questions/3443792/change-how-home-and-end-keys-work-in-xcode
頁: [1]
查看完整版本: Xcode 改變 Home & End Hot-Key