如何在保存Eclipse时禁用自动格式化? [英] How to disable auto formatting upon save in Eclipse?
本文介绍了如何在保存Eclipse时禁用自动格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
@Transactional(rollbackFor = DataAccessException.class,readOnly = false,timeout = 30,propagation = Propagation.SUPPORTS,isolation = Isolation.DEFAULT)
解决方案
窗口>首选项> Java>编辑器>保存操作
也可以在项目级配置。项目>属性> Java编辑器>保存操作。
Eclipse keeps auto formatting upon save, for example: it is insisting the following code should be in a single line once I save, despite breaking it up the way I want to.
@Transactional(rollbackFor = DataAccessException.class, readOnly = false, timeout = 30, propagation = Propagation.SUPPORTS, isolation = Isolation.DEFAULT)
解决方案
Window > Preferences > Java > Editor > Save Actions.
Can also be configured at the project level. Project > Properties > Java Editor > Save Actions.
这篇关于如何在保存Eclipse时禁用自动格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文