DEV Community

Discussion on: What's Been Your Biggest "Why Didn't Someone Tell Me" Discovery?

Collapse
 
murrayvarey profile image
MurrayVarey

For me, it was discovering that Ctrl + Backspace deletes an entire word. It completely changed how I type.

I was so excited -- I told everyone I knew, thinking I would change the world ...
Only one person cared. But he still thanks me to this day.

Hopefully yours is better than mine!

Collapse
 
zerquix18 profile image
I'm Luis! \^-^/

I discovered it too! And now I use it a lot. Rather than correcting a mispelled word, I just delete it entirely and re-write it. It's way faster.

Also: CTRL+SHIFT+Left Arrow will select an entire word and CTRL+Left arrow will jump.

Collapse
 
murrayvarey profile image
MurrayVarey

Exactly, it means you stay in your typing flow. Before -- after hammering Backspace 12 times to delete a word -- I'd have forgotten what I was actually trying to say.

Also, it's really satisfying to see a typo just disappear, like you're swatting it away.

I love all those entire word select shortcuts. They save so much time.

Thread Thread
 
moopet profile image
Ben Sinclair
  • sidles up *

Psst. Have you tried vim?

Thread Thread
 
murrayvarey profile image
MurrayVarey

Ha! Not for a loooong time. Maybe I'm ready.

What I like most about CTRL + Backspace is that it works all over the place -- from Word to Google Docs. In theory my mum could use it (if she could be bothered).

Thread Thread
 
moopet profile image
Ben Sinclair

On the Mac I use for work, in iTerm it deletes the previous letter, same as ^H. In this textarea I'm using to type this reply it does... nothing.
That's partially just down to it the oddities of MacOS - a lot of keyboard shortcuts are weird on Mac, like ctrl/alt left and right arrow, or ctrl-R or alt-dot. You have to go through a process of setting it up on a new machine, because most of these are broken out the box.

Thread Thread
 
murrayvarey profile image
MurrayVarey

Ah, I'm not a Mac user, so that's good to know. According to @achu it's ⌘ + Delete on a Mac.

Thread Thread
 
moopet profile image
Ben Sinclair

Yeah, that does nothing on mine either :)

Thread Thread
 
murrayvarey profile image
MurrayVarey

Oh dear. This might be why I failed to change the world.

Thread Thread
 
lifesandwich profile image
LifeSandwich

on MacOS its OPTION + DELETE

Thread Thread
 
moopet profile image
Ben Sinclair

As I mentioned, that does nothing on my Mac.

Collapse
 
kuerbisulme profile image
Simon

Wow, I didn't know that. I used CTRL + Shift + Left + Backspace 🤦‍♂️ Thanks for that!

Collapse
 
murrayvarey profile image
MurrayVarey

Happy to help!

Collapse
 
codemouse92 profile image
Jason C. McDonald

I love that too, although I too often forget it's there.

Collapse
 
achu profile image
Achu Abebe

On Mac, that's ⌘ + Delete

Collapse
 
jrwren profile image
Jay R. Wren

that does teh whole line. option+delete does a word.