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!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With