Eclipse代码格式化程序:如何去除它的效果? [英] Eclipse code formatter: how to remove its effects?

查看:226
本文介绍了Eclipse代码格式化程序:如何去除它的效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为一个错误,我已经使eclipse v。3.4.2格式化我的源代码在一个单一的类文件。
这真的很混乱,我如何恢复自己的原始文本格式?

解决方案

最简单的方法可能是使用Eclipse的本地历史。在文件的上下文菜单中,选择从本地历史恢复。如果在本地历史记录中不是,那么您可能需要回到源代码控制中的以前版本...(我假设您正在使用源代码控制,如果不是,我强烈地敦促当然,另外一个选项,如果您仍然将文件打开,只需按Ctrl-Z即可撤消操作 - 保持直到格式化消失:)


for a mistake i've made eclipse v. 3.4.2 formatting my sourcecode on a single class file. That's really confusing, how can i restore my own original text format?

解决方案

The simplest approach is probably to use Eclipse's Local History. On the context menu for the file, select "Restore from local history." If it's not in the local history, you may need to go back to the previous version in source control... (I assume you're using source control. If you're not, I strongly urge you to do so, right away.)

Of course, another option if you've still got the file open is just to press Ctrl-Z to undo actions - keep doing that until the formatting goes away :)

这篇关于Eclipse代码格式化程序:如何去除它的效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆