Eclipse Auto Save before build?

若如初见. 提交于 2019-12-03 06:15:12

问题


Coming from a Visual Studio background...

How do I tell Eclipse that it should auto save when ever I build rather than ask each time.

VS.NET has it under "Options", but I can't find it in Eclipse.

I use a Mac.


回答1:


Go to

Window -> Preferences -> General -> Workspace

and there you can check:

Save automatically before build + Build automatically




回答2:


First, try

Window -> Preferences -> General -> Workspace. There you can check "Save automatically before build" and "Build automatically."

If that does not work,

PLEASE TRY

Preferences -> Run/Debug -> Launching -> "Save dirty editors before launching"




回答3:


Save automatically before build

Window > Preferences > General > Workspace > check "Save automatically before build" > OK

Save dirty editors before launching

Window > Preferences > Run/Debug > Launching > check "Always" for "Save required dirty editors before launching"

Save resources before launching

This is actually an alternative to "Save required dirty editors before launching"

Change something in the current file > Run > check "Always save resources before launching" > OK


Details:

  • IDE: Eclipse Kepler
  • O.S.: Windows



回答4:


Preferences -> run/debug ->launching -> Save required dirty editors before launching.




回答5:


This has changed in Eclipse Luna (or maybe it's just because I'm on a mac and the answerers are on a PC).

You find it under this menu:

Eclipse -> Preferences -> General -> Workspace

From there, you check "Save automatically before build" + "Build automatically". On a Mac, Preferences isn't under the Window menu, so that confused me for a bit.




回答6:


(Just for completeness)

After Window -> Preferences -> General -> Workspace

(x) Save automatically before build + Build automatically

You must go to:

Windows -> Save Perspective As...

And select a name according to the perspective you are using. You can overwrite the old ones...



来源:https://stackoverflow.com/questions/2943122/eclipse-auto-save-before-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!