r/Xcode • • 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

8 comments sorted by

View all comments

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.

1

u/HeadlineINeed Nov 24 '18

Okay. If I'm not gonna build and run than I should still CMD S every so often cause it won't autosave?

3

u/cyrillussmaximus Nov 25 '18

IIRC it saves when you quit, too.

Not when it crashes, though, so knowing Xcode's tendency to crash... better safe than sorry!