News for hackers. Stuff that matters.
Re:Some Programming Language Ideas by cmontella on Thursday January 09, 2025 @01:00PM (#42648172)
How do you deal with writing code with multicursors when you have to type the same thing multiple times? With monospace I just ctrl+alt+down a couple times on aligned text and then type. With proportional fonts I don't suppose it's easy to align text exactly, so do you just not use multicursors or is there a solution you came up with that works?
Re:Some Programming Language Ideas by kridsdale1 on Thursday January 09, 2025 @01:19PM (#42648370)
I’ve been a professional programmer for 17 years and have never used multicursors. I don’t even fathom under what conditions you’d want to. I use Find and Replace.
Re:Some Programming Language Ideas by AlotOfReading on Thursday January 09, 2025 @06:36PM (#42650972)
Everyone programs a little differently. I often use it when e.g. using intrinsics and I want to change types. Find and replace isn't especially helpful when they're different names with substructure you need to modify locally.
Re:Some Programming Language Ideas by cozzyd on Thursday January 09, 2025 @01:44PM (#42648613)
Yes and ctrl-V in vim would be super awkward.
Re:Some Programming Language Ideas by pmontra on Friday January 10, 2025 @02:04AM (#42653347)
I don't use multicursors much, not every year. I'm using emacs. I register a sequence of keys and apply it multiple times with control e, control e, control e etc.
Re:Some Programming Language Ideas by kagevf on Friday January 10, 2025 @12:23PM (#42657675)
Not sure it counts as "multicursors" but overwriting a rectangle using C-x r t (string-rectangle) is pretty handy in emacs.