Keys for handling source code


    Result

    Windows

    Mac OS

    Cursor to next word

    Ctrl+Right Arrow

    Option+Right Arrow

    Cursor to preceding word

    Ctrl+Left Arrow

    Option+Left Arrow

    Cursor to beginning of line

    Home

    Command+Left Arrow

    Cursor to end of line

    End

    Command+Right Arrow

    Select a word

    Double-click

    Double-click

    Select a line

    Triple-click

    Triple-click

    Decrease selection one character

    Shift+Left Arrow

    Shift+Left Arrow

    Increase selection one character

    Shift+Right Arrow

    Shift+Right Arrow

    Decrease selection one word

    Ctrl+Shift+Left Arrow

    Option+Shift+Left Arrow

    Increase selection one word

    Ctrl+Shift+Right Arrow

    Option+Shift+Right Arrow

    Decrease selection one line

    Shift+Up Arrow

    Shift+Up Arrow

    Increase selection one line

    Shift+Down Arrow

    Shift+Down Arrow

    Decrease selection to beginning of source code

    Home+Shift+Up Arrow

    Command+Shift+Up Arrow

    Decrease selection to end of source code

    Home+Shift+Down Arrow

    Command+Shift+Down Arrow

    Increase selection to beginning of source code

    End+Shift+Up Arrow

    Command+Shift+Up Arrow

    Increase selection to end of source code

    End+Shift+Down Arrow

    Command +Shift+Down Arrow