When I at the end of line.
I can use a shortcut to select to the beginning of line.
There is a shortcut. If the system-wide shortcut
⇧⌘←
To discover the shortcuts open the preferences of Xcode > Key Bindings and type something in the search field for example beginning