In some editors (SQL server management studio, visual studio code, but badly), ctrl-shift-arrow keys lets you edit many rows of text simultaneously. Simplest example is multi-row comment, but if you align your code well, some repetitive tasks become surprisingly efficient.
Alt+Shift+Left-Click for any JetBrains IDEs. I use it for coding as well as data editing (eg. Aligned MySQL CLI results in a scratch file) all the time.
The support is excellent as when you have multiple cursors, all other standard key combos, like Ctrl+arrow work for all at once. It's also great for selecting a list of aligned text and pasting it elsewhere.
If you use git and clone the same (or related) repositories in multiple places on a single disk, they can share the hashed object to reduce disk space and/or network usage and increase speed.
One workflow is to git clone mirror the main repo and use that as a shared read-only source of historical references when cloning a new repo. You can also hardlink or reference those objects to save disk space (though some file systems will do that transparently for you). It feels like this could be done entirely transparently to the user, for a free speed boost but it's not quite there yet and still needs some thought and setup. Some big services use this behind the scenes though so it's presumably robust. So worth looking into if you are spending time waiting for clones.
Kind of distinct but could solve similar problems where they overlap.
Worktrees let you have different branches from the same repo checked out to the file system at the same time, without needing seperate repos. The clone --shared --reference-if-able and -dissociate options let you have multiple repos with less of a space hit. They almost certainly can be used at the same time, though I've never heard of anyone doing so. The limit of only having at most a single copy of each branch checked out, which makes sense for development purposes, made worktrees unsuitable for my use, which was mostly (ab)using git as a deployment tool.
The word derives from the Venetian phrase "s-ciào vostro" or "s-ciào" (schiavo/sciavo) literally meaning "(I am) your slave" This greeting is analogous to the medieval Latin servus which is still used colloquially in parts of Central/Eastern Europe or the antiquated English valediction "Your Obedient Servant." https://en.wikipedia.org/wiki/Ciao In Italy you say ciao both when you meet somebody, and when you leave, while in other countries (e.g. Brazil), you say "Ciao" only when you go away: if you use it when you meet somebody sounds sooooo weird :) :)
It will relaunch the last command you used with sudo before. Example: $ apt upgrade
Could not open lock file ...
$ sudo !!
sudo apt upgrade
[sudo] password for ...:
Comments (762) 128 threads
Earlier commentsThe support is excellent as when you have multiple cursors, all other standard key combos, like Ctrl+arrow work for all at once. It's also great for selecting a list of aligned text and pasting it elsewhere.
You can also use it when you select something, what you selected becomes the token
More: https://www.jetbrains.com/webstorm/guide/tips/multi-cursor/
One workflow is to git clone mirror the main repo and use that as a shared read-only source of historical references when cloning a new repo. You can also hardlink or reference those objects to save disk space (though some file systems will do that transparently for you).
It feels like this could be done entirely transparently to the user, for a free speed boost but it's not quite there yet and still needs some thought and setup. Some big services use this behind the scenes though so it's presumably robust.
So worth looking into if you are spending time waiting for clones.
Worktrees let you have different branches from the same repo checked out to the file system at the same time, without needing seperate repos.
The clone --shared --reference-if-able and -dissociate options let you have multiple repos with less of a space hit.
They almost certainly can be used at the same time, though I've never heard of anyone doing so.
The limit of only having at most a single copy of each branch checked out, which makes sense for development purposes, made worktrees unsuitable for my use, which was mostly (ab)using git as a deployment tool.
The word derives from the Venetian phrase "s-ciào vostro" or "s-ciào" (schiavo/sciavo) literally meaning "(I am) your slave"
This greeting is analogous to the medieval Latin servus which is still used colloquially in parts of Central/Eastern Europe or the antiquated English valediction "Your Obedient Servant." https://en.wikipedia.org/wiki/Ciao
In Italy you say ciao both when you meet somebody, and when you leave, while in other countries (e.g. Brazil), you say "Ciao" only when you go away: if you use it when you meet somebody sounds sooooo weird :) :)
It will relaunch the last command you used with sudo before. Example:
$ apt upgrade Could not open lock file ... $ sudo !! sudo apt upgrade [sudo] password for ...:
All comments shown.
Couldn't load more comments. Check your connection and try again.