ProgrammerHumor

howToSaveFiles

howToSaveFiles
https://i.redd.it/jve5fakpz2ef1.png
Reddit

Discussion

YoukanDewitt
:js:

#3 Press ctrl+s every time you finish a short thought process..

1 day ago
jaskij
:c::cp::rust:

Also why I don't do format on save, it kicks me out of focus

1 day ago
TheKr4meur

You animal ..

22 hours ago
jaskij
:c::cp::rust:

I do it manually whenever I'm done with a bigger batch.

22 hours ago
TheKr4meur

Couldn’t be me, I need this indentation perfect at every single given point in time

22 hours ago
jaskij
:c::cp::rust:

Oh, nah, the IDE keeps decent formatting while I'm writing, and I put in the effort for the code to be properly formatted anyway.

The whole file reformat is mostly for catching shit that got missed, which isn't much, but causes file reload, which sometimes moves which part is visible.

22 hours ago
RetiredApostle

I use both.

1 day ago
devu_the_thebill
:cp::unreal::gd::js:

one time my ide crashed it didn't worked. Hour of my work went to shit and i obviously forgot to save. But it always shows my files as saved. I no longer believe this little shit.

1 day ago
FantasicMouse

Yeah I don’t trust auto save. I had a script corrupt from it years ago. Luckily I was able to restore the file from Time Machine that only put me back a couple hours.

But since then command+S is used everytime i stop and think.

5 hours ago
MA2_Robinson

I use both because like a dumb dumb I always forget to plug my computer in whenever it reminds me it’s about to die for 100th time because certainly I have more time.

22 hours ago
Div64
:cp::ts:

Certainly 5% will last for just 30 more minutes!

11 hours ago
mgranja

Both and Ctrl + K, S (save all) every 5 minutes.

21 hours ago
e_before_i

CTRL+S+S+S+S

Just in case the first 4 don't work, can't be too careful.

1 day ago
Theatralica

This comment caught me off guard. Have my upvote

18 hours ago
beklog

its a habit.. even the office 365 is complaining whether I need to save as/rename the document lol

19 hours ago
jessevdp

:w

1 day ago
jacob_ewing

[esc] :wa

1 day ago
Chickfas

I do [esc] [esc] [esc] [esc] :w

1 day ago
wobbyist

Just wait till you’re done, do one big ol’ :wq, then push

1 day ago
Tima_Play_x
:cp:

[Esc] :wqa

1 day ago
Daemontatox
:rust:

Untill i somehow close my terminal window and dont save.....

18 hours ago
DT-Sodium

I don't want my IDE to autosave.

1 day ago
Clen23

i'm very curious to hear what's the downside of too much saving?

edit : thanks all for the insight, i didn't consider those

1 day ago
DT-Sodium

Because you can do a lot of shit in your code and it's faster to reload a safe save point than find it doing undo. Also if you're working with a framework that rebuilds the application every time you save, you don't necessarily want it to reload when it's not needed.

1 day ago
Clen23

kid named git :

(seriously though I can understand that for minor modifications it can fit your workstyle better)

(also the framework thing is definitely real too)

1 day ago
DT-Sodium

You commit your code every 30 seconds?

23 hours ago
triangularRectum420

Imagine an auto-save + auto-commit feature in an IDE

14 hours ago
DT-Sodium

How about no?

11 hours ago
20Wizard
:j:

This is how people end up with 50 commits of fluff a day

13 hours ago
twigboy
:py:

I was really annoyed to find out vscode was automatically saving when I was trying to figure out why my local instance was reloading like crazy, causing the dev tabs in browser to refresh like crazy too

CPU was showing huge spikes. No joke on a big company project, but completely fine to leave on for a hobby one.

1 day ago
Aromatic-CryBaby

once, in a ten thousand line worth file (that i had not copy of), i by mistake inputted a single character who knows where and closed the IDE. needless to say i was unable to figure out where i had fucked up.

1 day ago
SirPengling

This is an edge case, but when you save a file that has a syntax error while Flask is running, it just stops the server.

2 hours ago
ianrob1201

Definitely both! I need auto-save on, but still mash ctrl-s constantly.

1 day ago
DasBeasto

If I had auto save on I wouldn’t be able to ctrl+z back in time, copy something I needed, and ctrl+shift+z back to to the present without losing all my changes.

1 day ago
Puma_090

Can't relate :w and in vim we trust

1 day ago
ZaneElrick

They have auto-save?

1 day ago
le_reddit_me

I save screencaptures of my code every 15min

1 day ago
Savings_Ad449HK

:wq

1 day ago
Snudget
:rust::py::asm:

I use strategic saving sometimes. If I want to try out if a bigger change could work, I don't save until I implemented the change. If I realize that it is complete bullshit, I can easily revert the file by closing it

1 day ago
Spec1reFury
:unreal:

:w gang

1 day ago
KingDotNet

:w

1 day ago
4b534d

:w :w :w :w :w

1 day ago
GregTheMad

What is this "save"? Until it's committed and pushed, nothing is truly safe.

14 hours ago
NoComment7862

Pfft, i just hit the Build button

1 day ago
Philaire

Why not both?
Both.
Both is good.

1 day ago
realnete
:cp:

every 5 seconds? thats pretty long tbh

1 day ago
FallenDeathWarrior

I wish Visual Studio would have such an reliable feature

1 day ago
CommanderSteps

I’m still used to CTRL+S despite auto-save. I guess that won’t go away anymore. 😅

1 day ago
amtcannon
:g:

I was helping a junior debug some code, made a change that I was sure would fix it, switched to the running code to try it. Nothing. Reset the server a zillion times, recompiled. Nothing. Tried a more elaborate approach. Still nothing. Took me about 15 minutes of banging my head against it to realise they didn’t have auto save on, and that my changes were simply unsaved.

1 day ago
Fininho92

I'm addicted to indent and save after any change and you can't stop me

1 day ago
zirky

map the semicolon key to a macro that inserts a semicolon at the current position and then saves the document

1 day ago
Amazing-Movie8382

I press save every single ; or just make sure it is saved so my JIT compiler keep whining :v

1 day ago
geeshta
:py::ts::cs::rust::gleam:

Auto save keeps fing me up with live reload servers

1 day ago
Nemaeus
:py:

Only a mad person doesn’t obsessively CTRL+S multiple times in a row every 5 seconds.

1 day ago
chenverdent

Ctrl+s was such a strong muscle memory that when I switched to Mac, I kept hitting it.

1 day ago
jamiejagaimo

I put my format file hotkey to ctrl S and keep auto save on. Out of habit I always hit ctrl S but now it's useful

23 hours ago
Linked713
:js: :cs:

what reputable ide these days don't have recovery for crashes.

23 hours ago
PLLX76
:rust:

Between each character

23 hours ago
Financial-Ad3716

Ide auto saves?????? Have I fucking never noticed or was this just a visual studio L

22 hours ago
NarwhalDeluxe

There isnt even a save option in xcode

22 hours ago
Mattsvaliant
:py: :cs:

office online

press ctrl+s to save out of habit

"You don't need to save, we got you"

Go to close browser tab

"You have unsaved changes, are you sure?"

Fuck you Microsoft.

20 hours ago
Vipitis

I save way too frequently. Because not saving doesn't really update the script when I run it again. And that is very confusing at times. so more saving it is.

Since this is all tracked in git, I wouldn't be so afraid of auto save like I am with other programs. Where destructive changes shouldn't be auto saved.

19 hours ago
GetPsyched67
:py: :c: :kt:

Can't relate. Haven't pressed ctrl + S in about 7 years. VSCode's after delay autosave is pretty much infallible.

18 hours ago
violet-starlight
:cp:

I recently learned Visual Studio only backs up your files after a certain amount of time without saving, for which the minimum you can set is 1 minute.

After a BSOD on pressing ctrl+S last week I lost 6 hours of work.

17 hours ago
System51_inco

I write everything in nano straight up on the server with a unstable connection

17 hours ago
jetSparroow

:w

16 hours ago
messierCobalt_

esc+:w

13 hours ago
FictionFoe

I had a ctrl-s spasm in my hand before I moved to an IDE with auto save and git. Still had it for like half a year after.

12 hours ago
LibrarianOk3701

I use both, the orher day power went out while I was in JetBrains Rider, and I was so pissed cause I didn't save, but the autosave saved me from losing all the stuff I didn't save. That was a mouthful

11 hours ago
Maximum-Counter7687

auto save is terrible. what if u delete working code to experiment and u didnt comment it or commit it? then it autosaves and u close ur ide thinking it wasnt saved.

version control is way better

1 day ago
GetPsyched67
:py: :c: :kt:

If autosave is on, you wouldn't close your ide thinking it wasn't saved lol.

Secondly, just comment it out if you're testing code.

Thirdly, if you did delete it, just ctrl + Z

Fourthly, you can't forget to both comment it, and commit it, and then blame the ide. That's on you.

Fifthly, files not getting saved is a terrible form of version control

18 hours ago
Maximum-Counter7687

"thinking it wasn't saved lol." im talking about u dont want to save. u dont want to save the bad changes

if im experimenting a lot im not commiting each weird experimental change i make

17 hours ago
Devatator_
:cs:

Literally me on IntelliJ IDEA despite the auto save being enabled, tho I noticed that the OS only gets notified of a change when I do CTRL+S. Was working on a Minecraft UI framework using XML and the filesystem watcher I had setup to reload the screen I was testing only triggered when I did CTRL+S on the file

1 day ago
hughmercury

There's a setting in file watchers to tell them whether to run on Autosave or not. Ot at least there is in PHP Storm, WebStorm, PyCharm, Goland and a couple of flavors I use. Don't use IDEA itself. But it's all the same framework, so I suspect it does to.

14 hours ago
bwmat

Auto-save???

You mean, like it backs up current changes 'somewhere' in case it crashes right? 

Actual auto-save is a scary thought

13 hours ago