如何在 Eclipse 中保存时禁用自动格式化? [英] How to disable auto formatting upon save in Eclipse?

查看:36
本文介绍了如何在 Eclipse 中保存时禁用自动格式化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse 在保存时保持自动格式化,例如:它坚持以下代码在我保存后应该在一行中,尽管按照我想要的方式分解它.

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.

Window > Preferences > Java > Editor > Save Actions.

也可以在项目级别进行配置.项目 > 属性 > Java 编辑器 > 保存操作.

Can also be configured at the project level. Project > Properties > Java Editor > Save Actions.

这篇关于如何在 Eclipse 中保存时禁用自动格式化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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