Search code examples
xcodeshortcut

How to define the shortcut for selecting to the beginning of line


When I at the end of line.

enter image description here

I can use a shortcut to select to the beginning of line.

enter image description here


Solution

  • There is a shortcut. If the system-wide shortcut

    • ⌘← moves the cursor to the beginning of the line and
    • ⇧← extends the selection it's logically

    ⇧⌘←

    To discover the shortcuts open the preferences of Xcode > Key Bindings and type something in the search field for example beginning

    enter image description here