1.首先file->Preferences->Settings,进入配置页面 2.选择Text Editor->Formatting 勾选format on save,则写代码时,保存操作后,会自动进行代码格式化 相关文章: