How to use VS Code Multi-Cursor Editing

preview_player
Показать описание
In this video we will learn how to use a powerful feature in VSCode: multi-cursor editing. Multi-cursor editing is used to edit several lines of code at a time. Learn this powerful feature to edit code files faster.

There are a few way to activate multi-cursor editing

For a Mac
⌘D - Add selection to next Find match
⇧⌘L - Select all occurrences of current selection
⌥ + - click Insert cursor
⌥⌘↑ - Insert cursor above
⌥⌘↓ - Insert cursor below

For Windows
Ctrl+D - Add selection to next Find match
Ctrl+Shift+L - Select all occurrences of current selection
Ctrl+Alt+ ↑ / ↓ - Insert cursor above / below

VSCode Cheat sheet for Mac OS

VSCode Cheat Sheet for Windows

#shorts #vscode #programming #coding
Рекомендации по теме
Комментарии
Автор

Another neat thing is that if you keep the scrolling wheel pressed down, you can place a cursor in every position you move the pointer

maxcarriers
Автор

really good video, i found it very helpful. The content is high quality, this channel is so underrated

eliasebner
Автор

Thank You So Much Bro!!!! This Is So Useful For Thank You So

StylishBanditSlayerS
Автор

Right click > Change all occurrences

bukwildman
Автор

if i hit control+D it just copy and paste the word. why?

lokosstratos
Автор

Ctrl D duplicates lines what should i do?

NoranSherif
Автор

I'm using windows and the setting for multiple cursors with Alt doesn't work. Furthermore, I've configured in VSC to activate it with the shortcut Ctr + M Ctr + M and still not doing anything, can anyone assist? :)

osviiii
Автор

beware if u have notepad++ keybinds they ovveride the default keybinds allowing you to do this can be deleted in the keybinds menu

bundarust
Автор

can you please tell me how to turn off it because when i wanted to copy or cut something same word in upper line is highlighted so i wanted to turn off

TamonashPal
Автор

Not sure why, but my duplicate on command d

dannyc
Автор

Kindly tell me how u write code in different lines ? Like u write in 1 line and then 2, 3,4 how ?

wwlearnsomethingwithmotivation