为什么我不能在 Eclipse Juno 中保存文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15414249/
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
Why can't I save file in Eclipse Juno?
提问by Victor Lyuboslavsky
Sometimes I cannot save a file in Eclipse Juno.
有时我无法在 Eclipse Juno 中保存文件。
The File->Saveoption is greyed out and Ctrl+Sdoes not work. What's going on?
该文件- >保存选项是灰色,按Ctrl + S不起作用。这是怎么回事?
回答by Victor Lyuboslavsky
This is a known issue in Eclipse Juno:
这是 Eclipse Juno 中的一个已知问题:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=396418
https://bugs.eclipse.org/bugs/show_bug.cgi?id=396418
As a workaround, use 'Save All': Shft+Ctrl+S
作为解决方法,请使用“全部保存”:Shft+Ctrl+S
回答by user2258777
Try: Save as. It will tell you what is a problem in your code. Probably you did "copy-paste" and some characters cannot be mapped using "US-ASCII" encoding characters.
尝试:另存为。它会告诉您代码中有什么问题。可能您进行了“复制粘贴”,并且某些字符无法使用“US-ASCII”编码字符进行映射。
回答by A K
You can also restart your Eclipse.
If you didn't use that "Save all"-workaround that was mentioned you will of course lose all your unsaved progress.
By restarting Eclipse you will be able to use the "normal" save again (until it is greyed out again...for me this happens like once per day)
您还可以重新启动 Eclipse。
如果您没有使用提到的“全部保存”-解决方法,您当然会丢失所有未保存的进度。
通过重新启动 Eclipse,您将能够再次使用“正常”保存(直到它再次变灰……对我来说,这种情况每天都会发生一次)