Sublime Forum

Expand selection backwards

#1

The shortcuts I’m referring to are this

    { "keys": "ctrl+e"], "command": "expand_selection", "args": {"to": "word"} },
    { "keys": "ctrl+e"], "command": "find_under_expand", "context":
        
            { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
        ]
    }

Highlighting a word and pressing ctrl+e repeatedly will highlight the next word that matches within the document. Is there any command to tell it to reverse and go back a word? Thanks.

1 Like

#2

Try control + U (soft-undo).

Soft-undo will undo selections and cursor movements.

1 Like