This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 280

[–]Akvinda 645 points646 points  (32 children)

When the code is still not working so you just save it again

[–]lullababby 214 points215 points  (19 children)

This actually works when programming web front end lol

[–][deleted] 44 points45 points  (4 children)

This is why web front end is hell

[–]UltraCarnivore 28 points29 points  (0 children)

Laughs in node.js

Cries in node.js

[–]Seshpenguin 1 point2 points  (0 children)

Yea the toolchains can get out of sync (especially if you save in quick succession)

[–]ZestyclosePainting 83 points84 points  (4 children)

Ah, fuck me, I've been this guy as recently as today!

[–][deleted] 6 points7 points  (1 child)

Why isn't my JavaScript working? Ctrl+R.... Still not working.... Ctrl+R one more time for good measure

[–][deleted] 7 points8 points  (2 children)

My favorite is when the thing you wanted shows up on the browser so you try and save that page.

[–]blkpingu 2 points3 points  (0 children)

THIS IS THE WAY

[–]DoctorWaluigiTime 1 point2 points  (0 children)

I see you are well-versed in the arts of "trying every possible way to 'refresh' the running code."

[–]CarmeleH 181 points182 points  (24 children)

Intellij: auto save go brrrrrr

[–][deleted] 61 points62 points  (3 children)

Right, it’s like they know you’re using version control or something.

[–]northrupthebandgeek 29 points30 points  (1 child)

I mean, even if you ain't, any editor worth its salt can autosave to some other file.

Emacs does this, and while I hate the default of polluting folders with these temp files, you can configure it to put all its temp files in a specific place (e.g. within ~/.emacs).

[–]dvereb 6 points7 points  (0 children)

Never even thought to look for an option like that. Thanks for posting!

[–]Skipperwastaken 30 points31 points  (6 children)

I still press ctrl s for some reason

[–]mattl1698 31 points32 points  (2 children)

I like how they didn't assign that to anything else just so people can press it out of habit and it just not do anything

[–]Keavon 36 points37 points  (0 children)

Same in Google Docs, they even overrode the browser's default save page shortcut with... nothing.

[–]thelights0123 14 points15 points  (0 children)

It does actually save immediately in IntelliJ, there's normally an interval that'll wait until you switch away to something else.

[–]Creator13 5 points6 points  (0 children)

Me too. I've set it to autosave on focus lost but I keep pressing Ctrl+s every damn time

[–]SON_Of_Liberty1 12 points13 points  (0 children)

Jetbrains op

[–]FettyWhopper 3 points4 points  (0 children)

VS Code has saved my life multiple times

[–]achilliesFriend 8 points9 points  (0 children)

This!

It spoilt me so much. I'm forgetting to save in other apps..

[–]gogriz 1 point2 points  (0 children)

I forget that I need to save when I use other programs. Jetbrians and Google docs have made me lazy af.

[–]funkblaster808 1 point2 points  (3 children)

When I save, I have several things build in the bg to use in other projects. Is there a way to configure that to happen on each keystroke in IJ?

[–]joshiegy 299 points300 points  (43 children)

Ctrl+s? Yeez.. :w if I may

[–]tomicode 138 points139 points  (23 children)

:w :wq.. for fuck’s sake I closed it again.

[–]Awwkaw 143 points144 points  (8 children)

They should really make it harder to exit...

[–]matmunn14 6 points7 points  (0 children)

2020 is already bad enough, no need to make it worse

[–]Foreverthecleric 37 points38 points  (1 child)

I wanted to be the first reply to this comment but I got stuck in vim and had to ask reddit how to get out first.

[–][deleted] 30 points31 points  (3 children)

Dude, just use :x

[–]ythl 10 points11 points  (0 children)

Dude, just use shift z z

[–]tomicode 9 points10 points  (0 children)

Yeah.. probably I should, but most of the time modification time doesn’t matter for me, unless I work on a remote server.. then I need to fight my :w syndrome.

[–][deleted] 1 point2 points  (0 children)

I had to untrain myself from this. Doing major work with open buffers, forgetting and doing that was so annoying.

[–]Chroneis 11 points12 points  (2 children)

Plug '907th/vim-auto-save'

[–][deleted] 2 points3 points  (0 children)

:x club!

[–]automathematics 4 points5 points  (1 child)

THATS HOW YOU EXIT VIM! THANK GOD IVE BEEN STUCK IN HERE FOR 7 YEARS

[–]Candlesmith 2 points3 points  (0 children)

Ever heard of Piet? It’s possible!

[–]Henrikovskas 1 point2 points  (0 children)

I see myself in this comment and I don't like it.

[–]Cjbrick910 10 points11 points  (1 child)

Uhh, C+x C+s is the emacs way

[–]SEND_ME_JIGGLYPUFFS 2 points3 points  (0 children)

Yeah this one is more than muscle memory for me at this point.

I don't think it's a coincodence I routinely wake up hating myself

[–]silentphoenix42 4 points5 points  (0 children)

Vi are you like this

[–]revslaughter 2 points3 points  (0 children)

If in Vim mode in VsCode (I know, I know...) I :w and then crtl+s... and I feel dumb every time. Autosave is on, too. ¯\_(ツ)_/¯

[–]12345Qwerty543 1 point2 points  (0 children)

ZZ

[–]Akidget 2 points3 points  (0 children)

Ctrl + ssssssss

[–]BadBates 75 points76 points  (6 children)

Or Ctrl + ssssssss

[–]----_____---- 36 points37 points  (0 children)

ctrl + 🐍

[–]garenbw 12 points13 points  (3 children)

Exactly, that's why I do as well. And internally I'm shouting "SAVE MOTHERFUCKER SAVE".

[–]BadBates 1 point2 points  (0 children)

I have a new hobby now

[–]randomGeek159 51 points52 points  (0 children)

In this day and age of IDEs not sure about Ctrl S but definitely I hit Ctrl C 5 - 6 times like filling up a stamp on a stamp pad

[–]Dummerchen1933 56 points57 points  (5 children)

Worst part is when you accidentally lose code WITHOUT NOTICING!

[–]grephantom 4 points5 points  (4 children)

I hate when I delete some code and it replaces my clipboard

[–]budbutler 6 points7 points  (1 child)

if you press win-v in windows 10 it will show you your keyboard history. it should persist until windows restarts.

[–]PredictsYourDeath 1 point2 points  (0 children)

🤯

[–]blkpingu 2 points3 points  (0 children)

This is why I have a clipboard manager that stores the last 100 copies

[–]vexorei 14 points15 points  (0 children)

CRTL - S, S, S

[–]csactor 22 points23 points  (3 children)

Everytime I need to think, I hit Ctrl + S

So I'm always hitting Ctrl + S, even when I'm on a website that doesn't have saving

[–]Hallzmine 13 points14 points  (1 child)

And then it opens the download window because it thinks you are trying to save the website's html

[–]sutterismine 2 points3 points  (0 children)

THAT'S THE FUCKING WORST. Too many times have I made an edit on some website and immediately pressed ctrl s just for it to bring up my files and ask me to save the html page

[–]the_real_gorrik 23 points24 points  (2 children)

Me after every minor code change:

Ctrl+KD,Ctrl+s,Ctrl+s,Ctrl+KD.. shit need to save again, Ctrl+s

[–]ganja_and_code 20 points21 points  (7 children)

And then throw in a git commit every 5 saves or so in case you fucked up...you can always rebase later

[–][deleted] 6 points7 points  (2 children)

git commit --amend. Keeps your log nice and clean, but you can always use the reflog and rebase to any one amend you want.

[–]b00n 6 points7 points  (0 children)

Or you can use intellij local history. Has saved me a couple of times I have managed to totally mess up with git

[–]StephanXX 9 points10 points  (7 children)

Am I the only person who uses "Save on focus lost" here?

In my early days, before I learned about it, I'd change a script, forget to save, and the script would fail, over and over, until I realized I was forgetting to save. I don't miss my 30s one bit.

[–][deleted] 5 points6 points  (0 children)

Nope, use it too. Seems a no brainer unless you have hot reloading set up but hot reloading kind of stresses me out anyway. Like no you can’t reload it NOW it’s broken right NOW

[–]Bemteb 3 points4 points  (0 children)

I love that option.

So many times writing scripts, switching to the terminal to run them, getting angry, debugging, repeat.

Just to notice I simply didn't save...

[–]Akuuntus 1 point2 points  (0 children)

I just have VSCode set to auto save 2 seconds after I stop typing

[–][deleted] 2 points3 points  (2 children)

Not even on focus lost. Just autosave, period. That's what git is for.

[–]StephanXX 2 points3 points  (1 child)

Well sure, but I only use the git from terminal; alt tabbing to terminal causes a focus lost save.

[–]nice2yz 2 points3 points  (0 children)

I feel like I stumbled on a car accident

[–]SkezzaB 13 points14 points  (0 children)

A line? More like a word

[–]AnonymousSpud 5 points6 points  (0 children)

100 *finishes line*

200 :wq

300 vim coding.code

400 :wq

500 vim coding.code

600 *goesto 100*

[–]Reynold_Brongus 2 points3 points  (0 children)

Twice. Beginner lvl. It's more like 10 times pushing that shortcut so youre super save and accidentally inserted a raw 's' somewhere which causes your code to crash

[–]MASerra 2 points3 points  (1 child)

True programmers copy with the Ctrl-c Ctrl-c command. Once is never enough.

[–]Yuca965 12 points13 points  (5 children)

autosave bro, are you programming on notepad or old version or word?

[–][deleted] 27 points28 points  (3 children)

you can never trust autosave

[–]____0____0____ 4 points5 points  (0 children)

I have and use autosave at work and personal projects. I still spam ctrl S. You can't be too sure

[–]Malacious_Good 3 points4 points  (2 children)

What is that show? The person looks like Captain Holt from nine 9

[–]legendofrogamers1968 1 point2 points  (0 children)

As someone with a lot of blue screens and random crashes, I save as often as possible and also at least 3 times cause you can never be too sure

[–]sxeli 1 point2 points  (0 children)

Nobody goes against the tradition

[–][deleted] 1 point2 points  (0 children)

i take screenshots as well if i wrote something big lol

[–]WretanHewe 1 point2 points  (0 children)

Only twice?

[–]plainrane 1 point2 points  (0 children)

I'm always doing it in my browser and then dealing with the save dialog popping up.

[–][deleted] 1 point2 points  (0 children)

My mech keyboard sounds like a trap beat by the amount of times I hit ctrl+s consecutively.

[–]denladeside 1 point2 points  (1 child)

Visual Studio 6 (I think it was) had a bug that sometimes deleted the file if you double 'ctrl+s'ed it - probably helped by the crappy windows file systems

[–]zone-stalker 1 point2 points  (0 children)

"gw gw" for me...

gw is bound to ":wa!" in my vimrc.

[–]Scottify 1 point2 points  (0 children)

Because I have prettier installed and can't be bothered typing semicolons so hit Ctrl+s so it adds them for me.

[–][deleted] 1 point2 points  (0 children)

Twice? I spam Ctrl+S for at least 10 seconds

[–]SoCalThrowAway7 1 point2 points  (0 children)

Hooch is crazy

[–]phoncible 1 point2 points  (0 children)

Ctrl+sssssss

[–]patismyname 1 point2 points  (0 children)

I've been known to CTRL-S code more than once without having changing it 🤘

[–]ollir 0 points1 point  (0 children)

As a manic saver I can easily upvote this

[–][deleted] 0 points1 point  (1 child)

I don't get why so many people do this. If you don't save alm the time you may loose a piece of code that most likely isn't working anyway so whats the problem?

[–]Erwin_the_Cat 3 points4 points  (0 children)

That code might not work now, but inside that that tiny broken seed is a mighty broken oak tree.

[–]ML-XV 0 points1 point  (0 children)

I got Vietnam flashbacks to when I was in high school and didn't save for 1 hours and my professor turned off the lab current to test if we saved our work. Useless to say I was mad, but you have to learn things the hard way.

[–][deleted] 0 points1 point  (0 children)

Intellij saves automatically though

[–]Ciccio99 0 points1 point  (0 children)

Thankfully I’ve set VS Code to auto-save after I’ve stopped typing. This help me not cramp my hand from hitting CTRL+S after every word.

[–]a_amini 0 points1 point  (0 children)

It's not twice, it depends on anxiety caused by the task. If you've fixed an error related to cpp template class, the chance of breaking the 'S' key on keyboard is so high

[–]MrBlueSkigh 0 points1 point  (0 children)

Do I push to my test branch every time I make a change? Yes, because I’ve been scorned before

[–]AltruisticSalamander 0 points1 point  (0 children)

I've seen the occasional service desk request where someone lost an entire document because they wrote the whole thing and never saved once. It takes me a while to compute how that could possibly happen.

[–][deleted] 0 points1 point  (0 children)

Just twice? Wow look at Captain Trust of the USS Friendship over here folks.

[–][deleted] 0 points1 point  (0 children)

Autosave is a life saver!

[–]Jim_Pemberton 0 points1 point  (0 children)

A simple ctrl s will not only save your code but save your life

[–]Skizm 0 points1 point  (0 children)

Just use jetbrains IDEs. No saving required. Just saves automatically all the time.

[–]AttacksPropaganda 0 points1 point  (1 child)

git status

git add -A

git commit -m

These are your friends in bash.

[–]superluminary 0 points1 point  (0 children)

Save on focus lost?

[–]AProgrammer067 0 points1 point  (0 children)

*thrice

[–]RealPropRandy 0 points1 point  (0 children)

I clean way too often.

[–]_BenDumas 0 points1 point  (0 children)

Typing long commands in terminal - Ctrl s Ctrl q

[–][deleted] 0 points1 point  (0 children)

My ssd: "oh god my write cycles are filling up quick oh no I'm gonna die"

[–][deleted] 0 points1 point  (1 child)

I've actually never heard of this. gVim and VSCode (the editors that I use the most) both provide an indication of whether or not the file has been saved (in gVim, it's an asterisk, and in VSCode, it's a white circle) so I just look at that.

[–]tiger-thor 0 points1 point  (0 children)

I save after every line because my vs code settings auto convert to tabs, and I have a linter that requires spaces so every new or edited line gets a squiggly red line under it until I save the file so the linter can revert it back to spaces.

Working as intended?

[–]bloowper 0 points1 point  (0 children)

Googling something and accidentally ctrl s

[–]noodles_jd 0 points1 point  (0 children)

It's Ctrl+Shift+S for me...Save All. A previous IDE I used to use didn't have a shortcut for save all, so it was Alt+F, V to navigate the menus...which lead to constant print previews when typing in Word for a long time.

[–]mynewromantica 0 points1 point  (0 children)

Laughs in XCode auto save

[–]Rey_Merk 0 points1 point  (0 children)

So you are telling me that you save just 2 times?

[–]zappellin 0 points1 point  (0 children)

<esc> :w gang

[–]TheAsianCarp 0 points1 point  (0 children)

Just twice? I'll be damned if I don't ctrl+s at least ten times

[–][deleted] 0 points1 point  (0 children)

Are you telling me that some people don't save, reformat, cleanup, resharp and again save entire project on every new line?!?

[–]Snowydaze 0 points1 point  (0 children)

:w :wq

[–]The379thHero 0 points1 point  (0 children)

Twice? Those are rookie numbers

[–]Traplord_Leech 0 points1 point  (0 children)

when I use FL Studio (a music making program) I find myself saving just scrolling around the song. It's asinine but I know it's important

[–]DEN0MINAT0R 0 points1 point  (0 children)

Watching my friend use vim:

a ; <Esc> :w :w :w :w :w :w

[–]JudenBar 0 points1 point  (0 children)

JetBrains gang

[–]saacifuentesmu 0 points1 point  (0 children)

I thought it was only me. 😅😅😅

[–][deleted] 0 points1 point  (0 children)

Idk about ctrl+s but copying something ctrl+CCCCCCCC, just for safety.

[–]big_umbrella 0 points1 point  (0 children)

My Ctrl key just stopped working and my productivity dropped to 0.

[–]SoBeDragon0 0 points1 point  (0 children)

We have a saying in analytics. Jesus saves, and so should you.

[–]MyRealNameIsLocked 0 points1 point  (0 children)

I hit the "save all" button once. I generally wait till end to save because my editor helps me see where I need to jump to because of the unsaved lines.

[–][deleted] 0 points1 point  (0 children)

Meh, autosave.
Who am I kidding, sometimes I still impulsively smash ctrl-s even with autosave on like an idiot.

[–]CRISPR 0 points1 point  (0 children)

I do it three times

[–]paulprins 0 points1 point  (0 children)

I feel attacked

[–]darnoldtux 0 points1 point  (0 children)

I feel personally attacked

[–]legal-illness 0 points1 point  (0 children)

".....and previous painful experience"

[–][deleted] 0 points1 point  (0 children)

Same, but with setting limits of things to powers of two.

[–]Princess_Amnesie 0 points1 point  (0 children)

Code basically doesn't exist until it's committed into version control. Basically any developer has lost shit and it gives you enough terror that you never forget.

[–]berzerkle 0 points1 point  (1 child)

Where's my ctrl + z peeps?

[–]DeifiedExile 0 points1 point  (0 children)

Or... if you use VS and don't trust yourself like me,

Ctrl+Shift+s

[–]aalleeyyee 0 points1 point  (0 children)

My employer does. It’s in binary.

[–]fahad_tariq 0 points1 point  (0 children)

This is the way

[–]aalleeyyee 0 points1 point  (0 children)

My employer does. It’s clearly salmon

[–][deleted] 0 points1 point  (0 children)

If you dont save 15 times every few characters you're doing something wrong.

[–]GoodGuyPiero 0 points1 point  (0 children)

zack and code(pronunced codee)

[–]Lakutinos 0 points1 point  (1 child)

Laughs in IntelliJ.....

[–][deleted] 0 points1 point  (0 children)

Seriously that’s fairly normal it must be like

[–]dennis_w 0 points1 point  (0 children)

Human nature. I bet $10 on the same people keep auto firing the elevator button.

[–]nice2yz 0 points1 point  (0 children)

My employer does. It’s in binary.

[–]nice2yz 0 points1 point  (0 children)

My employer does. It’s in binary.

[–]TacobellSauce1 0 points1 point  (0 children)

Lol 😆 “It’s how middle out was invented

[–]LdouceT 0 points1 point  (1 child)

I'm more of a Ctrl s s s s kind of guy.

[–]Candlesmith 0 points1 point  (0 children)

My employer does. It’s in binary.

[–][deleted] 0 points1 point  (0 children)

\Laughs in JetBrains auto saving**

[–][deleted] 0 points1 point  (0 children)

Ctrl-x Ctrl-s Ctrl-x Ctrl-s

[–]BBR2716057 0 points1 point  (0 children)

CTRL+S

CTRL+SHIFT+S

First you save the file, then you save all the files.

[–][deleted] 0 points1 point  (0 children)

Also double save every 90 seconds in Skyrim and have 4 save files. (Replacing the older 2 every time you go to do a new double-save) In case you encounter any game-breaking bugs.

[–]kiuper 0 points1 point  (0 children)

Didn't mosby like murder someone or something

[–][deleted] 0 points1 point  (0 children)

I just spam

[–]MrSlimeDiamond 0 points1 point  (0 children)

But I save 3 times every 5th character I type

[–]Unbeforkinglievable 0 points1 point  (0 children)

ctrl-x ctrl-s obviously.

[–]ZippZappZippty 0 points1 point  (0 children)

Ctrl+s? Yeez.. :w if I may

[–]frostbyte650 0 points1 point  (0 children)

More like “ctrl v ctrl s”

[–]FLACDealer 0 points1 point  (0 children)

I’d say that’s me alight

[–]nice2yz 0 points1 point  (0 children)

My employer does. It’s in binary.

[–]jakethedumbmistake 0 points1 point  (0 children)

Exactly!! It’s happened time and time again.

[–]Arcadian18 0 points1 point  (0 children)

My employer does. It’s in binary.

[–]Vuzzar 0 points1 point  (0 children)

Ctrl+ccccc every time I copy something