If this against blind code duplication or against vibe coding, it's OK.
However, there are cases where copy and pasting are legit, such as when you have in your code very similar parts.
The last time this happened to me, this was in an function calculating values for a bezier curve. A part calculated coordinate x of a point. For the coordinate y, I copied and pasted this secrion then changed what had to be changed.
If you'd read what I said you'd see both the interrupt shortcut and visual line mode are pretty useful to me. ctrl-C is a good bit faster than finding the right pid to kill -INT in another terminal window
195
u/jbar3640 Oct 31 '26
copying and pasting is the very basic to learn to program. and it's not wrong.
113
u/EmilyCatNips Oct 31 '26
using System;
namespae Meow {
publi stati lass Program{
publi stati oid Main....
}
}
45
u/WayOk5717 Oct 31 '26
Jokes on you, my mouse has these as shortcuts
16
u/Usual_Office_1740 Oct 31 '26 edited Oct 31 '26
Jokes on you. I use Emacs
/uj edit: I've had ctrl remapped to capslock for so long I forget that ctrl is used in lots of emacs keychords.
14
u/TheNativeOfficial Oct 31 '26
this is not true, OP. Its bullshit.
10
u/selfie-poster Oct 31 '26
Missed the shift
10
u/SpiritNo6626 Oct 31 '26
yy
p
10
u/asmanel Oct 31 '26
If this against blind code duplication or against vibe coding, it's OK.
However, there are cases where copy and pasting are legit, such as when you have in your code very similar parts.
The last time this happened to me, this was in an function calculating values for a bezier curve. A part calculated coordinate x of a point. For the coordinate y, I copied and pasted this secrion then changed what had to be changed.
4
u/YTriom1 Oct 31 '26
On Linux just highlight to copy and middleclick to paste
3
u/Panduin Oct 31 '26
Use purely TAB for copilot autocomplete
3
u/OkChildhood1706 Oct 31 '26
Meh, less painful than having a meeting with your sales team and a customer.
2
u/1ncogn1too Oct 31 '26
Shift+insert 🤦♂️
2
u/random_thought1612 Oct 31 '26
Use the mouse and right click
2
u/eigenraum Nov 01 '26
Isn’t that what AI does all the time? 😁
2
u/potato-dranik Nov 01 '26
What if I want to press Ctrl+Z?
2
u/Drtrome Nov 02 '26
How would I define a new class without a C?
2
u/Different-Entry7888 27d ago
How am I writing my CONSTs and VOIDs?
2
u/rover_G Oct 31 '26
Good thing claude can read anything
1
u/MisterSincere Oct 31 '26
y and p
1
u/elkvis Oct 31 '26
Tell me you want everything to take 10x longer, without actually saying so
1
u/NullSmoke Oct 31 '26 edited Oct 31 '26
inefficient, got macros. Corsair K95, ctrl c is on G5, ctrl v is on G6, much easier to press G5 4-5 times before pressing G6 once 😌
Let's hope I don't need to reference calculateVerticies() in the future 😰
1
u/fearlessinsane Oct 31 '26
So ctrl+ s ?
1
u/PhilSchmil Oct 31 '26
What would I need these keys for? Claude is doing the source code changes :)
1
u/cnbatch Oct 31 '26
CTRL + C → Right CTRL + Insert
CTRL + V → Shift + Insert
1
u/KattyTheEnby Oct 31 '26
This is gonna run into an unhandled exception the moment one ov the devs need to manually type out
std::vectoror som'.1
u/cupcakeheavy Oct 31 '26
those are my favorite keys )=
1
u/3_Fast_5_You Oct 31 '26
no lol
1
u/Entire_Cut_6553 Nov 01 '26
changes key maping noobs
1
u/_ahrs Nov 01 '26
Shift+Insert is fine though
1
u/ThrwawySG Nov 01 '26
I chose software development for a living and you think I’m not a masochist?
1
u/My_leg_still_hurt92 Nov 01 '26
That's why Microsoft invented the copilot button.
1
u/HidenInTheDark1 Nov 01 '26
RIP my auto-save short. Ctrl+S every line no more Ig 😭
1
u/AziCrawford Nov 01 '26
I just use y and p
1
u/RelationshipLong3562 Nov 01 '26
yanked 1 selection to register"
1
u/PsychologicalTry3972 Nov 01 '26
1
u/DKSAMURAI Nov 01 '26
Implement.
1
u/CMDR_Nya Nov 01 '26
To use Shif+Insert instead
1
u/ExtraTNT Nov 01 '26
Can’t select, but can still copy lines…
1
u/[deleted] Nov 02 '26
If you think that "ctrl c" is primarily used for copy in a programmer life you probably never used a terminal
1
u/BoomKofe Nov 02 '26
Hit the keys from the side????
1
u/phil7301 Nov 03 '26
The only thing I will train is my pain tolerance
1
u/ooo-InstaGamer 29d ago
Now I'm stuck in CLI since can't ctrl c to exit
1
u/D_Daka 29d ago
Navigating around the IDE using ctrl / shift / home / end is the way
1
u/MaffinLP 28d ago
I use ctrl shift c more than ctrl c
1
u/RedAndBlack1832 Oct 31 '26
Shockingly, you actually do need the control key. There's ctrl-C, ctrl-D, ctrl-R and some program specific favourites of mine ctrl-V, ctrl-B, ctrl-5