What is the equivalent shortcut in Visual studio code for Ctrl + D and Ctrl + U in Sublime?

Viewed 11234

In VS-code, if I want to find all occurrence of the currently selected word, I can just hit Ctrl+D command, but what if I just want to add the next occurrence instead of all of the occurrence?

In Sublime, I can hit Ctrl+D to select next occurrence, and Ctrl+U to select the previous occurrence, but what is the equivalent shortcut in VS-code?

3 Answers

You can simply go to VSCode settings->Keybord Shortcuts and assign any keybinding to any command.

Eg: Search for copy line down command in Keybord Shortcuts-> Double click on Keybinding column press Ctrl+D do add the Keybinding

Ctrl + D in Visual Studios (Any Edition) to copy the line down

The equivalent Keyboard Shortcut in VS Code IDE to copy line down : Shift + Alt + ↓

& To copy line up : Shift+Alt+↑

To change these shortcuts in VS Code
Check How to : 1. Open Keyboard Shortcuts menu
2. Find Shortcuts

Double Click to change them!

Related