The Escape Key closes most popups, dialogs, modals. It’s also non-destructive, so it won’t close a program; any “save changes” dialog will be cancelled.
Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
Win + E to open a file browser window
Control Backspace deletes whole words. Misspelled control? Faster to delete and retype than move my cursor around when I'm on a roll.
Not a computer hack, but some phone keyboards have backspace and whitespace drag, the former allowing to select a range form the cursor to delete and the latter moving the cursor. Way more usable than trying to fat finger cursor position and selection.
when my computer pisses me off i like to smash it
My main one is to learn shortcuts on your most used programs. Using the mouse for everything is a waste of time, but that has been said multiple times.
My second is to create scripts to do a bunch of repetitive tasks. For example, I have a script I run on my work PC after I log on to the VPN that starts my "always on" programs (like notepad++), unlocks the hosts file, etc. I have some sendto scripts for converting files with pandoc, fetching multiple git repos in one go, etc. It just speeds up things and avoids errors versus me doing them manually.
On Windows I use PowerShell and on Linux I use bash, meaning they work without additional software installed.
Shift + del: skips the trash and actually deletes things
-
Double clicking with the mouse on a word usually selects the whole word with the space after, very nice for copy-pasting.
-
Double clicking on the selected word will sometimes select the whole line(In some applications it actually selects up to the newline marker, so it will grab multiple lines if resized smaller).
-
Shift + Tab (also works on Linux)
-
If you have a mouse with side buttons, you can use the side buttons to go back or go to the next page on browsers
-
Pressing Alt + F4 on the desktop opens up a dialog asking if you want to shut down, restart, log out, etc. (I think this works on Linux as well)
My grub boot loader is pretty hacked together at this point. Really should probably do a fresh install at some point. Want to get a 4TB SSD at some point though.
Ok, windows "hacks" I use at work.
There's a setting in windows that opens snipping tool when print screen is pressed. This allows to select a screen, window or a rectangle. More than that, it also has screen recording functionality. Very good for quick screen grabs with no additional software required.
Useful for multilinguals out there. Windows (and some linux distros) have an option to bind keyboard layout selection to open windows, meaning alt+tab'ing no longer requires switching between languages.
EDIT:
A phone thing. Some keyboards have whitespace and backspace drag functionality, that allows to move the cursor or highlight and delete text without blocking your view with your fat fingrers.
ANOTHER EDIT:
Having a mouse with at least two thumb buttons is a god send. Moving backwards and forwards between application pages is very useful.
Also, for devs. Go through you IDE shortcut settings and configure (ctrl|shift|alt)+click shortcuts. Having mouse controls to navigate between declarations, usages and implementations of different code elements with intention is awesome.
In the same vein: ctrl+(f|r) and ctrl+shift+(f|r) for find or replace in file or whole project respectively is really common use case.
Have multicarret shortcuts that allow edits in multiple lines at once. Don't forget to add shortcuts like alt+(up|down) to move selected lines up and down.
Configure shortcuts for code folding like ctrl+numpad+ and ctlr+numpad- to expand and hide current block or combine with shift to manipulate the whole file.
And for gods sake use home and end keys, combined with ctrl and shift it allows for efficient navigation and selection within a file. Combine it with multicarret support and ctrl+side_arrow_keys and you have a way to sync multiple carrets and efficiently edit multiple lines.
Finnaly: f1 – help, f2 – rename, f5 – refresh / run, optionally with ctrl, f11 – fullscreen, f12 – devtools.
There's a setting in windows that opens snipping tool when print screen is pressed. This allows to select a screen, window or a rectangle. More than that, it also has screen recording functionality. Very good for quick screen grabs with no additional software required.
Win+Shift+S is the keyboard shortcut. You can even do screen recordings. I use that shit all the time at work, to send bug reports when the useless fucking software we’re forced to use has a repeatable crash that the dev team can’t replicate with text reports alone.
Not sure if this has been said already, but win + m collapses all open windows.
Win+D show desktop!
Expanding on yours, Shift + Home and Shift + End to select from the cursor to the beginning or end of the line.
And Ctrl + Shift + Arrow Keys to select words/lines. Essential when working with documents.
Edit: Sorry, this has already been thoroughly covered in this thread.
With Shift + Pos1 or End you can mark text from cursor until beginning or end of line! I use that often.
End > shift+home will let you copy lines outside of IDE
Ctrl + C
Ctrl + V