Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to control Save File when I modify a file in Android Studio?

Now I use Android Studio instead of eclipse, I hope I can control if I need to save file, it seems that Android Studio save file automatically.

After I try to close a modified file window, I hope Android Studio can display a prompt dialog and let me choose if save the modified file. How can I do? Thanks!

like image 330
HelloCW Avatar asked Jun 01 '15 08:06

HelloCW


1 Answers

Android Studio is based on the JetBrains IntelliJ IDEA platform which takes full control over when files are saved. The only options for controlling file save are found in the Appearance & Behavior > System Settings > Synchronization section of the Settings. These will not do what you require.

Many people switching from alternative IDE's have the same concerns as you. In all discussions I can find there is no way around this.

The JetBrains developers argue that because the platform has built in local history differences for all file saves, it is always possible to rollback any file saves.

Read more from the JetBrains developers here: https://devnet.jetbrains.com/docs/DOC-191

Here is a similar discussion on this issue for the IntelliJ IDE: IntelliJ - not asking if I want to save a file

like image 121
BrentM Avatar answered Oct 29 '22 18:10

BrentM