1.如何取消文件自动保存
Settings -> Appearance&Behavior -> System Settings标签项里
取消“Synchronize file on frame activation” 和“Save files on framedeactivation”的选择
同时我们选择"Save files automatically", 并将其设置为30秒,这样IDEA依然可以自动保存文件,也就是在30s内不会帮你自动保存文件,需要手动ctrl+s保存,超过30s会自动帮你保存。

如果想让修改时,在文件右边显示*号标志,Settings -> Editor –> General ->Editor Tabs
选中"Mark modifyied tabs with asterisk"

2.如何让代码编辑区显示行号
Settings->Editor->Appearance标签项,勾选Show line numbers

网友评论