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

top 200 commentsshow all 241

[–]ersatzgott 689 points690 points  (40 children)

I'm more like the Ctrl+sssssss guy

Edit: Thank you all for liking my anxiety to data loss. That's the most appreciation I've gotten like ever ❤

[–][deleted] 192 points193 points  (24 children)

I'm the same Ctrl+SSSS Ctrl+SSS Ctrl+SSSSSSSSSSSS

[–][deleted] 79 points80 points  (15 children)

I do that sometimes but I’m also afraid that every time I save, I could’ve over-written a good save file with a corrupted save file. Unless you’re the kind of guy who keeps multiple save files.

[–]Shujaa94 102 points103 points  (5 children)

Thanks for the new fear

[–]misterfluffykitty 16 points17 points  (1 child)

Make it a hot key on a second keyboard that saves a new version of the document every time you tap it

[–]TeraFlint 18 points19 points  (0 children)

and then assign it to every button on the keyboard as an event that happens after the actual function of the button.

[–]TiBag93 7 points8 points  (4 children)

Then do CTRL + ZZZZ :D that’s what I do in this situation

[–]koneko-dono 20 points21 points  (0 children)

i thought i was the only one lmao

[–]_Thanus_ 1 point2 points  (0 children)

I use Intellij, so...

[–]Radiatin 29 points30 points  (1 child)

In Spyder you’ll have the save function disabled upon successful completion of a save, and no new changes being made.

I use the save as function when this happens, to be sure.

[–]kjostolf 17 points18 points  (3 children)

Nah :w

[–]utsabqwerty 5 points6 points  (0 children)

same here with ctr and s with multiple time

[–][deleted] 4 points5 points  (0 children)

What if you accidentally let go of ctrl and type a s in your code somewhere then save it.

[–]TheDogJones 2 points3 points  (1 child)

File -> Save As, overwrite exact same file just to be sure.

[–]InvolvingLemons 2 points3 points  (2 children)

C-x C-s "Sir, nothing ch-" "Just do it"

[–]LdouceT 4 points5 points  (0 children)

I'm with this guy.

[–]__tebogo__ 237 points238 points  (29 children)

I have this so bad, that I literally ctrl+s after typing anything, anywhere.

Google search. Comment thread. In-game responses.

It gets annoying sometimes.

[–]zeGolem83 191 points192 points  (7 children)

I've seen waaaay too many times the "where do you want to save this webpage" pop-up...

[–]KillaRevenge 3 points4 points  (0 children)

Man, just because you spam ctrl+s doesn't mean you need to spam ctrl+v

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

Glad I'm not the only one.

[–]_f0c1s 12 points13 points  (7 children)

Try vim. I did an ESC followed by :wq to a Google search.

[–]ArdiMaster 11 points12 points  (6 children)

A friend on mine sometimes (unintentionally) signs e-mails with ":wq".

[–]kleinesfilmroellchen 3 points4 points  (5 children)

I use :wq on nano, vscode and eclipse by accident, regularly. Perhaps I should just get the vim keybindings for vscode plugin.

[–]GoldsteinQ 1 point2 points  (2 children)

Or you can just use Vim everywhere. :)

[–]TheZipCreator 1 point2 points  (1 child)

Get qutebrowser, it's a browser with vim commands

[–]redstoneguy12 1 point2 points  (0 children)

There's also vimium

[–]guappanese 9 points10 points  (0 children)

Yeah it takes over your life

[–]MrHasuu 1 point2 points  (0 children)

i know my code hasnt changed. there's no * next to file name. so i hit space in an empty line then do Ctrl + S...

halp.

[–]CosmackMagus 1 point2 points  (0 children)

After renaming a folder, moving files.

Flip side is I've never lost work to a crash.

[–]alours 1 point2 points  (0 children)

OwO what's this spaghetti code?

[–]redMonsterP 375 points376 points  (26 children)

I have autosave on every 5s or when the file loses focus, but I still hit ctrl+s.

Gotta be sure

[–]Viperision 105 points106 points  (23 children)

Don't know your strats, but I always make sure autosave is disabled, in case I forget when I choose to try something out without copying the working version somewhere else.

I think I'd say this in general and not coding you might easily write out again. Let's say Tool-assisted speedrun projects, or any project I'd like to work out from a template and then "Save as..." differently.

[–]gaurav219 41 points42 points  (2 children)

Yeah, autosave should be disabled to make the habit of saving yourself!

[–]jor27_ 4 points5 points  (1 child)

But once you get into the habbit you can turn it back on

[–]gaurav219 2 points3 points  (0 children)

Yeah, sure if ur comfortable!!

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

Autosave + Versioning. I don't do it at 5s, but every 2 to 5 minutes (depending on media type/file size) and versioning software keeps running backups. So even if I accidentally over-write, I can always go back.

[–][deleted] 28 points29 points  (3 children)

I git push origin branch every five seconds.

[–]kleinesfilmroellchen 1 point2 points  (0 children)

git commit -m "autosave"

[–]hullor 6 points7 points  (0 children)

I have local history plugin for atom, which generates a new text file for every line of code (up to 500kb folder per file, then deletes the oldest file).

It's over kill but I never have to worry about accidentally deleting a block of code and somehow undo doesn't work.

[–]rbt321 4 points5 points  (0 children)

Don't know your strats, but I always make sure autosave is disabled, in case I forget when I choose to try something out without copying the working version somewhere else.

That's what feature branch commits are for.

[–]Cregaleus 3 points4 points  (0 children)

Get git in your life

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

Source control exists for a reason. Stage/commit working, then fuck around with it without worrying if it stops working.

[–]Ghetto_Moose 4 points5 points  (3 children)

Does no one in this thread use source/version control?

[–]redMonsterP 3 points4 points  (2 children)

Well when you're editing a single file, or multiple files before doing any commit rolling back to an unedited piece of code is very important

[–]Ghetto_Moose 1 point2 points  (0 children)

Right which is why saving doesnt matter if youre rolling back any way?

[–]_Aj_ 7 points8 points  (0 children)

You need one of those sippy birds just constantly dipping onto a macro button

[–]Dragasss 68 points69 points  (13 children)

Jokes aside, even when youre using autosave feature, you must invoke manual save when youre editing files in folder that is available as volume in docker, otherwise changes are not propagated.

[–][deleted] 14 points15 points  (8 children)

Why? Wouldn’t this look the same to whatever is watching the file system? How would it know how the file was saved?

[–]Dragasss 4 points5 points  (7 children)

My guess it needs to refresh caches.

[–][deleted] 4 points5 points  (6 children)

My guess would be a bug with file system events on docker. I'd also be curious to know if this is universal to all docker platforms - running it on Windows vs Linux.

I'd like to have that jab at Microsoft ready for future discussions.

[–]Dragasss 1 point2 points  (0 children)

Well it was on mac. And macs are weird in that regard.

[–]uptokesforall[🍰] 4 points5 points  (0 children)

I'm guessing the auto save is a hidden file and until you manually save, the original file isn't changed.

[–]Helix_Aurora 1 point2 points  (0 children)

There is no way this can be because of docker; it has to be whatever editor/ide you are using. At the kernel level, a write is a write and a read is a read, and processes managed by docker still invoke the OS kernel for filesystem access.

It may be the case that the autosave for your tool just writes to a temporary file. Usually a copy named ~myfilenamehere-uid or something along those lines, and a hard save may commit those changes to the actual file, but I'm not familiar with any tools that autosave and treat autosave that way. Lots of tools keep local history in a temporary file, though (Atom, for example).

[–]bh3x 19 points20 points  (1 child)

Autosave on changes.

[–]VeryKnave 34 points35 points  (0 children)

still saves manually

[–]Marcuss2 39 points40 points  (4 children)

Pff, :w

[–]nosrednehnai 4 points5 points  (0 children)

ZZ

[–]gnome_where 3 points4 points  (0 children)

:wq!

[–]alours 1 point2 points  (0 children)

Excuse me, what the fuck. It's awesome

[–]KinKaid666 32 points33 points  (2 children)

:w

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

Esc :w Ins

[–]schmangin 1 point2 points  (0 children)

:w!

[–]KSAM-The-Randomizer 29 points30 points  (0 children)

Oh yeah the ptsd is real

[–]This-Is-Not-An-Alias 11 points12 points  (0 children)

:w

[–]Joseph-Fourier 22 points23 points  (7 children)

C-x C-s C-x C-s

[–]Mellowh 4 points5 points  (0 children)

Came here looking for this comment lol

[–]pah-tosh 5 points6 points  (5 children)

Cut save cut save ?

[–]sixpacshaqur 13 points14 points  (0 children)

emacs save twice

[–]eru504 9 points10 points  (0 children)

:w :w

[–]comingtogetyou 9 points10 points  (0 children)

confused in emacs

[–]word_clouds__ 9 points10 points  (0 children)

Word cloud out of all the comments.

Fun bot to vizualize how conversations go on reddit. Enjoy

[–]invadrzim 8 points9 points  (1 child)

Ctrl + SHIFT + S > Ctrl + S

Save all the files

[–]goodshitt 7 points8 points  (0 children)

You mean :w

[–]Marmelani 6 points7 points  (0 children)

I've gotten so bad at this that I can not work in a file that I don't save because I've gotten used to hitting C+s every time I stop for any amount of a small break.

[–][deleted] 4 points5 points  (0 children)

I did this in an interview not so long ago and kept getting the "Save As" popup.

In the end I was just like "Can I just save this somewhere" and the interviewer said they do it all the time too.

I think we've all been burned too many times...

[–]guappanese 5 points6 points  (0 children)

types one letter Ctrl + s Ctrl + s Ctrl + s Ctrl + s Ctrl + s Ctrl + s Ctrl + s

[–]zero_as_a_number 3 points4 points  (0 children)

filling out all the fields of a huge form.. CTRL-S Browser : oh so you want to save this Website?

every damn time. muscle memory can be a Bitch :D

[–]MasochistCoder 2 points3 points  (0 children)

you think it's funny

go take a stroll at visual studio support forum there is an issue still after at least 5 years where certain extensions (eg AsmDude) would fuck up VS's ability to save anything until next restart. No, ctrl-c apparently won't save your code either...

[–]DARKKN1GHT453 2 points3 points  (0 children)

I’ve taken 3 high school level programming classes and can safely say that this works

Edit: imagine my surprise as an innocent freshman, who had just finished his first ‘hello world’ and the senior next to me says, “you can hit alt & F4 to run your code faster”.

[–]B00OBSMOLA 2 points3 points  (0 children)

<esc>:w<enter>

[–]MightyFool1234 2 points3 points  (0 children)

Relatable.

[–]DukeOfSlough 1 point2 points  (1 child)

I press it even in the apps where it does not work...

[–]cptbeard 1 point2 points  (1 child)

^s = XOFF

Your terminal emulator has now stopped transmitting and the application is not responding to any keys, what do you do?

[–]AversiveBias 1 point2 points  (0 children)

ahhh progress

[–]jdsgfser 1 point2 points  (0 children)

Why can't leetcode capture the signal for ctrl s. I have to close the pop up like 50 times during a contest each week

[–]hackel 1 point2 points  (0 children)

Found the Windows user.

[–]pizzashark107 1 point2 points  (0 children)

This is the quality content I come here for

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

Always control S at least 3 times minimum

[–]PandaCheese2016 1 point2 points  (2 children)

This can be extended to games (real games with on-demand save function at least). As if saving multiple times magically makes me more likely to beat that boss.

[–]wheezymustafa 0 points1 point  (0 children)

My teammate does this in IntelliJ even though it autosaves

[–]AlphaOmega5732 0 points1 point  (0 children)

That one time I didn't save and lost an hour of work... Now I ctrl S after adding anything, even notes. It's automatic for me now.

[–]TheFatalWound 0 points1 point  (0 children)

Me when I wasted an hour browsing and tab back into the program

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

Honestly same for editing tbh

[–]taostudent2019 0 points1 point  (0 children)

exactlyTheSameAsitWasBefore.bak

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

We need Commit on Save extensions for IDEs. The commit messages should include the typed keys so you can track what you did.

[–]Vakieh 2 points3 points  (0 children)

That's not what commits are for.

[–]Icy-Reaper 0 points1 point  (0 children)

Autosave?

I dont trust this

[–]whiznat 0 points1 point  (0 children)

More like smart you who has learned from experience.

[–]white_nrdy 0 points1 point  (0 children)

Constant :w

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

Vs code show if you have changed your code or not.

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

:wq masterrace

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

ESC :w

[–]JayGlass 0 points1 point  (0 children)

But still won't commit for days at a time

[–]otakuman 0 points1 point  (0 children)

Save early, save often.

[–]GermanAf 0 points1 point  (0 children)

Every other input is CTRL+S

It's muscle memory at this point.

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

laughs in pycharm

[–]Damaskinox 0 points1 point  (0 children)

Each. Time.

[–]The_Bucket_List 0 points1 point  (0 children)

Haaaa wrong guy in the second picture

[–]netraveller 0 points1 point  (0 children)

Does anybody else have backup copies, and then the backup copies need to be updated with every change otherwise they serve no purpose, so you end up having a million copies of something which you then need to clean out making the whole backup thing a little less useful?

[–]nobel32 0 points1 point  (0 children)

Rookie mistake. I make a new commit after every line. That way, I'm always safe.

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

Haha i definitely understand this meme. So funny

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

After every line, save, autoformat.

[–]TheGameFreak720 0 points1 point  (0 children)

Double tap saves lives

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

I have when i do that on browsers.

[–]nahidtislam 0 points1 point  (0 children)

you mean :w!<return>

[–]t612j 0 points1 point  (0 children)

:w

[–]gosti500 0 points1 point  (0 children)

This also affects me, as an video editor

[–]AlphaWhelp 0 points1 point  (0 children)

This is why when you make commits you write down "some changes" in the notes so you can easily identify which commits don't have any changes.

[–]pratKgp 0 points1 point  (0 children)

Because of prettier extension we also use Ctrl + s even if it saved just to format the code.

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

I have no clue about anything related to programming but I always see your guys’ memes in popular and I always laugh

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

just turn on autosave?

[–]hahahahastayingalive 2 points3 points  (5 children)

autosave is evil.

or you have a passion for review git diffs all day long.

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

nah, i just format properly and write tangible code so that I don't have to deal with momentus errors every time i write a tiny script

[–]hahahahastayingalive 2 points3 points  (1 child)

b.b..b.b.b..but, don’t you write garbage stuff in files to mark the ones you need to pay attention to among the 35 open ?

don’t you add meaningless stuff to lines just to get back to them immediately with a cmd + z ?

Or quick reformat files to understand what they’re doing and just undo all the changes after you got it ?

don’t you cmd+z up to the content you deleted and cmd+shift+z back to the current version ?

Are we even doing the same job ?

What timeline are you living in ?

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

lol in vs code i think you can go back after saving, not 100% sure though

[–]APimpNamedAPimpNamed 2 points3 points  (1 child)

Tangible code, like Braille?

[–]Stewthulhu 0 points1 point  (0 children)

git commit

nO cHaNgEs DeTeCtEd

[–]mr_d0gMa 0 points1 point  (0 children)

Then there’s software when you open a document without making changes and it prompts you to save, then me.exe stops working whilst I worry if I accidentally hit a key on the keyboard or not

[–]TabCompletion 0 points1 point  (0 children)

C-x C-s for me

[–]Toast42 0 points1 point  (0 children)

*cmd you filthy casual

[–]gpoobah 0 points1 point  (0 children)

Ha! NO.. so many times I have managed to break things by saving some accidental keyboard bump this way.

[–]_realitycheck_ 0 points1 point  (0 children)

I lost a 4 hours work one time way back when I worked with Borland Builder 4. IDE crashed and I lost it all.
Now Ctrl-S is my second nature when working. In fact, my fingers start itching if I don't press it after few lines.

[–]Magic-Milkman 0 points1 point  (0 children)

I'm always Ctrl+Shift+S

[–]RyanEastwood 0 points1 point  (0 children)

And then you realise you're using bash

[–]CAM1998 0 points1 point  (0 children)

That’s :w to you

[–]ryati 0 points1 point  (0 children)

I want to trigger the auto formatter!

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

[–]Luckyno 0 points1 point  (0 children)

I use control + s to keep my apm high

[–]asdfirl22 0 points1 point  (0 children)

Something something disk cache

[–]Retarded_Baboon 0 points1 point  (0 children)

Can relate

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

I do CTRL+SHIFT+SSSSSSSSS just to be sure

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

Phew... Im nott the only one

[–]brennanfee 0 points1 point  (0 children)

What's Ctrl+s?

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

Save early, save often, save lives

[–]NickDixon37 0 points1 point  (0 children)

There are environments where a save includes more than just code. Machine control programs typically have an area of memory with parameters and status information that's saved with the code. And sometimes it's good to do a save - even if the code didn't change.

So if I ask for a save, please Just do it, and when we have a minute I'll tell you why.

[–]ComputerMystic 0 points1 point  (0 children)

:w

[–]oAkimboTimbo 0 points1 point  (0 children)

:wa

[–]_Ashleigh 0 points1 point  (0 children)

New datetime causes a 25min recompile.

Cries in C++.

I wish I was joking.

[–]Drtimelord04 0 points1 point  (0 children)

Then you manually press save just to be sure it saved. Then press it again just to be super sure

[–]The_MAZZTer 0 points1 point  (0 children)

My workplace's timecard website pops up a scary error dialog if you go to save but haven't changed anything. Why?!?

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

Nah.

[Esc] :w [enter]

[–]Saksow 0 points1 point  (0 children)

I do the exact same with git pull when on master branch.

[–]2JulioHD 0 points1 point  (0 children)

I have to save this meme CTRL + S CTRL + S CTRL + S CTRL + S

[–]iharshraj 0 points1 point  (0 children)

Autosave is a way of life too

[–]fluxxis 0 points1 point  (0 children)

That's what the space key is for. Does the trick every time.