create account

RE: From Move Line to Multi-Cursor and More: My Top 5 VSCode Tips, Tricks and Shortcuts by coderad

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @agrante/re-coderad-sv63yi

· @coderad ·
i basically mark my life by pre- and post- knowing about multi cursor hahaha
properties (22)
authorcoderad
permlinkre-agrante-sv6c4i
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2025.4.6"}
created2025-04-23 13:57:57
last_update2025-04-23 13:57:57
depth2
children3
last_payout2025-04-30 13:57:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length76
author_reputation18,083,391,714,930
root_title"From Move Line to Multi-Cursor and More: My Top 5 VSCode Tips, Tricks and Shortcuts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,271,674
net_rshares0
@agrante ·
When I need mass replace I hit Ctrl + H
Not sure how that compares to Ctrl + D exactly, for the purpose of just changing a variable name everywhere.
properties (22)
authoragrante
permlinkre-coderad-sv6cbi
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-04-23 14:02:42
last_update2025-04-23 14:02:42
depth3
children2
last_payout2025-04-30 14:02:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length148
author_reputation78,115,619,717,538
root_title"From Move Line to Multi-Cursor and More: My Top 5 VSCode Tips, Tricks and Shortcuts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,271,772
net_rshares0
@coderad ·
ummm.... the best way i can describe it is it just FEELS different. just crack a piece of code and select something and hit CTL D. since you somewhat manually select each instance, you know 100% what will be changed. plus, no dialog box, you're not entering a serach, entering a replacement, then hitting go.... you're multi selecting and multi editing.

i only ever use CTL H if i want to find and replace across multiple files these days.
properties (22)
authorcoderad
permlinkre-agrante-sv6ctf
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-04-23 14:12:54
last_update2025-04-23 14:12:54
depth4
children0
last_payout2025-04-30 14:12:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length440
author_reputation18,083,391,714,930
root_title"From Move Line to Multi-Cursor and More: My Top 5 VSCode Tips, Tricks and Shortcuts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,272,051
net_rshares0
@coderad ·
to expand on my last answer a little, it just a whole new paradigm.... i get it, i've used CTL - H for YEARS. but being able to select.... like lets say you have a file with dozens of instances of '**card**' and you want to replace certain early functions that include **card** with **player.card**. you don't want *every* instance of card, that would break your program -- so you double click the first iteration of card (select word) and then hit control D to grab the others you want to modify. if you went one too far? ctl - U unselects that one. so you double click a name, hit CTL D however many times, and then type the new name. like i say, game changer. it's sooooo different than ctl-f ctl-h, its more pinpoint, and so much smarter

properties (22)
authorcoderad
permlinkre-agrante-sv6yl8
categoryhive-169321
json_metadata{"tags":["hive-169321"],"app":"peakd/2025.4.6","image":[],"users":[]}
created2025-04-23 22:03:21
last_update2025-04-23 22:03:21
depth4
children0
last_payout2025-04-30 22:03:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length743
author_reputation18,083,391,714,930
root_title"From Move Line to Multi-Cursor and More: My Top 5 VSCode Tips, Tricks and Shortcuts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,281,422
net_rshares0