DEV Community

Christian Heilmann
Christian Heilmann

Posted on

Quick VS Code tip: skip selections when using Ctrl|Cmd + D

Using Ctrl|Cmd + D in Visual Studio Code allows you to select the next occurrence of the current selection, which is excellent. However, sometimes you get false positives. The way to skip these is to press Ctrl|Cmd + K and Ctrl|Cmd + D in succession. You can see it in this screencast.

Skipping a selecting with a keyboard shortcut

Top comments (7)

Collapse
 
sriduh profile image
Sridhar

I was too frustrated with the extra effort that I have to put with carefully leaving that one line not selected. This tip was a game changer. Keep it up.

Collapse
 
whitewolf97 profile image
Adolfo Castelo

The feature we were all asking for.

Thank you for sharing

Collapse
 
diego_coder profile image
Diego Esteban C

Thanks for shared

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Man, VS Code is such a shameless rip off of SublimeText

Collapse
 
codepo8 profile image
Christian Heilmann

I switched from SublimeText to Atom to VS Code back then because the others were open for me to extend using JS/HTML/CSS and not some native format. Before that I used HomeSite, which also had a lot of features that VS Code has now. My main concern about Sublime was that it was slow to update and it cost you money to get a new version. So, this isn't about saying "VS Code is the only thing that does that", but about showing things that made me more effective using it.
VS Code is super available - free, for every platform out there and even as vscode.dev/ - so, how does this compare 1:1 to Sublime?

Collapse
 
kasuken profile image
Emanuele Bartolesi

It's a text editor. There are a lot of key features in common with other text editors.
You have the same features in other IDEs like JetBrains and similar. Are they rip off as well?

Collapse
 
jonrandy profile image
Jon Randy 🎖️

It's just the way VSCode users bang on about all the features as if they're VSCode only and VSCode is the best thing since sliced bread. The command palette for example - a feature that was pioneered by SublimeText before VSCode even existed.

VSCode is a resource hungry, slow rip off of many other IDEs - made free essentially to spy on you, and promote MS services and ecosystem lock in:

Visual Studio Code is designed to fracture

I used to think GitHub Codespaces would help popularise Gitpod but now realize it is the other way around. Gitpod is currently permitted to exist in the Visual Studio Code ecosystem to popularise GitHub Codespaces, and Microsoft can step in at any moment to create legal crises that strategically divide the market from a business perspective because, like Apple and their AppStore: it is their ecosystem that they control and they are in absolute control.

favicon ghuntley.com