this post was submitted on 13 Jul 2024
82 points (97.7% liked)
Asklemmy
43968 readers
1727 users here now
A loosely moderated place to ask open-ended questions
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Learn what the software or device you’re using can do. There’s often so much productivity packed in, you don’t even know what you’re missing.
For example code editors like VSCode or Sublime Text have easy ways to select and work on multiple lines/words at the same time that can make work SO much more productive and fast, it’s like magic. I see other people doing things line by line and it takes ages.
Microwaves have all kinds of presets that people rarely use. Read the manual and try them out.
I use VSCodium and other then bulk comment / uncomment and renaming I'm not sure what you're talking about.
I'd love some examples to help improve.
It’s hard to explain in words. I quickly searched for a video about it and this one shows the basics pretty good: https://youtu.be/w3JCjsIOMdM?si=-dS-m940AGHFgCG-
Sublime Text is a bit more powerful in that regard (and also more performant with very large files) which is why I still keep it installed even though I switched to VSCode long time ago. I guess Vim can do even more but I can’t get myself to learn it well.
You can use regex in vim
Every serious editor can do Regex
If you select some text then use CTRL+D, the editor will search the next match in the file and add it to your selection, and whenever you type something both of the selected segments of text will be edited in the same way - you can extend the selections with SHIFT+LEFT and SHIFT+RIGHT.
It's hard to explain in an intuitive way, but you'll get it if you try it.
Another simpler example is CTRL+SHIFT+UP and CTRL+SHIFT+DOWN: your current selection splits to the next line in either direction.
Something similar happens with CTRL+SHIFT+MOUSE_LEFT.
These work in most programs. You cam also use ctrl + bksp to backspace a full word
I'd believe Shift+Left and Shift+Right, but I doubt most programs support multicursor.
"Most programs" as in "most IDEs", maybe; Visual Studio, Eclipse, Micro and Kate do not, or at the very least not with those key combinations.
It works in web browsers. And Libre office. Try it
I don't have LibreOffice installed, but on Firedragon (a fork of Floorp (based on Firefox)) CTRL+SHIFT+DOWN behaves the same as SHIFT+DOWN, with no selection split; CTRL+D also has nothing to do with selection.
I meant that holding ctrl+left/right or bs/del acts on a word object rather than a character. Same with ctrl+shift+left/right. I use this to select and cut words without moving my hand to the mouse. Mostly writing emails in outlook on Firefox.
Appologies if there was some misunderstanding.
There's also stuff like autohotkey