user1121055
user1121055

Reputation: 421

How to disable Auto Save in Android Studio

Is there way to disable auto save in Android Studio?

I have already unchecked "Save files automatically if application is idle for n sec"

under Setting->General.

Anything else to be done?

Upvotes: 31

Views: 29187

Answers (5)

Lukas Pierce
Lukas Pierce

Reputation: 1301

In my case I just downgraded Android Studio.

Before downgrade: Android Studio Giraffe | Patch 2
After downgrade: Android Studio Giraffe | Patch 1

Upvotes: 0

Minhas Kamal
Minhas Kamal

Reputation: 22206

Disable Autosave

File > Settings > Appearance & Behavior > System Settings > Autosave > then uncheck both Save files if the IDE is idle for |15| seconds and Save files when switching to a different application > Apply

Screenshot- Disable Auto Save


After doing the above, you may like to do enable the following 2 options too-

Mark Changed But Unsaved File

File > Settings > Editor > General > Editor Tabs > then check Mark modified (*) > Apply

Screenshot- Mark Changed But Unsaved File

Save One File with Ctrl+S

File > Settings > Keymap > search with save document > right click Save Document > Add Keyboard Shortcut > press Ctrl+S> OK > Remove > Apply

Screenshot- Save One File with Ctrl+S

Upvotes: 48

kalpaj agrawalla
kalpaj agrawalla

Reputation: 996

For Android Studio v3.3

  • Open Settings (Ctrl+Alt+S or File->Settings)
  • On the top left corner of the settings menu, search for "save" in the search bar field
  • Click on System Settings and all the sub-settings related to save will be highlighted

    Auto Save in v3.3

  • Uncheck Save files automatically if application is idle for * sec

  • Click on apply and close the settings menu.

It is highly recommended to follow this method Mark Changed But Unsaved File which will help you distinguish between your unsaved and saved files.

Upvotes: 6

CodeToLife
CodeToLife

Reputation: 4171

In android Studio 2.1.1, 2016

File -> Settings -> Appearance and Behavior -> System Settings And see synchronization paragraph and uncheck autosave and/or 'use safe write'

Upvotes: 18

portfoliobuilder
portfoliobuilder

Reputation: 7866

If you go to Settings, and type Save in the search you will find under the IDE Settings an area called "General". From there you can find a number of options to control saving. It sometimes does not work and saving will continue anyway. Unfortunately there is no universal "turn-off" switch. AS is a hand holding IDE, you just have to get use to it.

Settings section you are seeking looks like this: enter image description here

Upvotes: 8

Related Questions