'Opposite of ⌘D in VS Code
⌘D selects the word at the cursor, or the next occurrence of the current selection.
What if I want to select not the next but the LAST (or previous) occurence ? This is especially useful when checking if a variable is present in my function above where I'm currently standing with my cursor.
I've tried a bunch of shortcuts to add before ⌘ like Shift and CTRL and Option, but none do the work.
Solution 1:[1]
You should look into Keyboard Shortcuts
you can open them from Command Palette
and search for Selection To Previous Find Match
, by default they are not assigned.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Grekkq |