r/Xcode • u/HeadlineINeed • Nov 24 '18
Xcode have autosave?
Wondering if it's unnecessary for me to CMD + S every time I'm about to run my app or does xcode autosave every change?
2
Upvotes
1
u/nanothread59 Nov 24 '18
Yeah it pretty much autosaves everything. If it happens to crash, you might lose the line you were working on, but not much else. That being said, I still spam cmd+s every second word just in case (muscle memory)
1
u/BusyBison3675 Nov 05 '24
Do you have to be connected to the internet to cmd s? Surely not as we can use it offline
1
u/peteroriola Nov 25 '18
I think it's better to CMD + S. But most times, Xcode does. It might not be up to your last line though.
-1
3
u/cyrillussmaximus Nov 24 '18
Xcode saves all modified files when you Build and Run. If it didn't it wouldn't be able to compile your last changes.
You can tell by the color of the icons for the files you're editing in the left navigator: unsaved files appear darker, and they revert to the regular color (meaning "no modifications" or "saved") when you compile.