I use both.
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.
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.
Both and Ctrl + K, S (save all) every 5 minutes.
CTRL+S+S+S+S
Just in case the first 4 don't work, can't be too careful.
its a habit.. even the office 365 is complaining whether I need to save as/rename the document lol
This comment caught me off guard. Have my upvote
:w
[esc] :wa
I do [esc] [esc] [esc] [esc] :w
Just wait till you’re done, do one big ol’ :wq, then push
[Esc] :wqa
Untill i somehow close my terminal window and dont save.....
I don't want my IDE to autosave.
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
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.
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)
You commit your code every 30 seconds?
Imagine an auto-save + auto-commit feature in an IDE
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.
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.
Definitely both! I need auto-save on, but still mash ctrl-s constantly.
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.
Can't relate :w and in vim we trust
They have auto-save?
I save screencaptures of my code every 15min
:wq
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
:w gang
:w
:w :w :w :w :w
What is this "save"? Until it's committed and pushed, nothing is truly safe.
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
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.
Pfft, i just hit the Build button
Why not both?
Both.
Both is good.
every 5 seconds? thats pretty long tbh
I wish Visual Studio would have such an reliable feature
I’m still used to CTRL+S despite auto-save. I guess that won’t go away anymore. 😅
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.
I'm addicted to indent and save after any change and you can't stop me
map the semicolon key to a macro that inserts a semicolon at the current position and then saves the document
I press save every single ; or just make sure it is saved so my JIT compiler keep whining :v
Auto save keeps fing me up with live reload servers
Only a mad person doesn’t obsessively CTRL+S multiple times in a row every 5 seconds.
Ctrl+s was such a strong muscle memory that when I switched to Mac, I kept hitting it.
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
what reputable ide these days don't have recovery for crashes.
Between each character
Ide auto saves?????? Have I fucking never noticed or was this just a visual studio L
There isnt even a save option in xcode
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.
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.
Can't relate. Haven't pressed ctrl + S in about 7 years. VSCode's after delay autosave is pretty much infallible.
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.
I write everything in nano straight up on the server with a unstable connection
:w
Doesn't your IDE have auto save?
Auto-save???
You mean, like it backs up current changes 'somewhere' in case it crashes right?
Actual auto-save is a scary thought
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
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
"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
#3 Press ctrl+s every time you finish a short thought process..
Also why I don't do format on save, it kicks me out of focus
You animal ..
I do it manually whenever I'm done with a bigger batch.
Couldn’t be me, I need this indentation perfect at every single given point in time
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.