第四十一篇-android studio 关闭自动保存功能

此方法不可用。

第一步:取消自动保存功能

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

第二步:设置修改过但未保存的文件有※显示,以式区别。

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

第三步:设置保存快捷键为Ctrl+S

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

最后一步可按自己的喜好设置按键,也可不操作。

参考文档

原文地址:https://www.cnblogs.com/smart-zihan/p/10476374.html