How turn off autosave in Android Studio?

后端 未结 4 2365
梦毁少年i
梦毁少年i 2021-02-19 10:59

I\'m using Android Studio version 0.8.2 (on Windows7). It is very annoying that when i change some file it is automatically saved. According to this i have turn off settings lik

相关标签:
4条回答
  • 2021-02-19 11:14

    I'm not sure if it is possible to turn autosave off, but you can use Local History when you want to change something back (Right click -> Local History -> Show History).

    0 讨论(0)
  • 2021-02-19 11:16

    The beaviour of "auto-saving" your file is not due to the auto-save options mentioned above.

    IJ saves all changes to your build sources to automatically build the target.

    This can be turned of in:

    Preferences -> Build,Execution,Deployment -> Compiler -> Make project automatically.

    Note: now have to initiate the project build manually (e.g. by using an appropriate key-shortcut)

    (All other "auto-save" options just fine-tune the build in auto-save behaviour.)

    0 讨论(0)
  • 2021-02-19 11:18

    Turnoff Auto Save

    File > Settings > Appearance & Behavior > System Settings > Synchronization > then uncheck both Save files on frame deactivation and Save files automatically if application is idle > OK


    Now, you should do this too.

    Mark Changed But Unsaved File

    File > Settings > Editor > General > Editor Tabs > then check Mark modified tabs with asterisk > OK

    0 讨论(0)
  • 2021-02-19 11:19

    I'm using Android Studio(v135.1740770) in Mac Pro, open below file:

    ~/Library/Preferences/AndroidStudio/options/ide.general.xml
    

    you will see option for autoSaveFiles, just change its value to false.

    <option name="autoSaveFiles" value="false" />
    

    In windows7 same file resides here,

    ~\.AndroidStudioXXX\config\options\ide.general.xml
    
    0 讨论(0)
提交回复
热议问题