Move to beginning of text in Xcode

前端 未结 9 2184
说谎
说谎 2020-12-23 16:18

I know I can bind keys to \"Move to beginning of line\", but this ignores the indentation.

What I\'m looking for is to move to the beginning of text on a line, so th

9条回答
  •  无人及你
    2020-12-23 17:05

    Actually, there is a faster and simpler way to achieve this as Mac OS supports some Emacs (or Unix) keybindings quite well.

    You can use Ctrl-a to jump to the beginning of a line. Which means, hold 'Ctrl' key and press 'a' on keyboard.

    For your more information, it is also handy to use
    Ctrl-e: jump to the end of a line
    Ctrl-n: move to next line
    Ctrl-p: move to previous line

    What's more, these fast keys can be used in terminal and text fields such as this StackOverflow answer editor on Mac OS, too.

    Hope that helps.

提交回复
热议问题