Eclipse:当我点击运行时不询问保存文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5669784/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: Save files without asking when I click run
提问by Bryan Field
Is there a way to save files without asking in Eclipse? Every time I click Run, it asks me if I want to save the file, and I always do.
有没有办法在 Eclipse 中不询问就保存文件?每次单击运行时,它都会询问我是否要保存文件,我总是这样做。
回答by dty
Preferences > Run/Debug > Launching.
首选项 > 运行/调试 > 启动。
There's a setting called "Save required dirty editors before launching". Set it to "Always".
有一个名为“在启动前保存所需的脏编辑器”的设置。将其设置为“始终”。
回答by Deerasha
There should be a check box on that Save File dialog:
该“保存文件”对话框上应该有一个复选框:
回答by Marcin
Or you can choose the option in Window->Preferences->General->Workspace and check the option called "Save automatically before build". This would make your life definitely easier
或者您可以在 Window->Preferences->General->Workspace 中选择该选项并选中名为“Save automatically before build”的选项。这肯定会让你的生活更轻松
回答by no.good.at.coding
You can select the Automatically save resources
checkbox the next time it prompts but I believe that's a per project setting.
您可以Automatically save resources
在下次提示时选中该复选框,但我相信这是每个项目的设置。