如何在Eclipse Helios(Java)中禁用自动缩进? [英] How do I disable auto-indent in Eclipse Helios (Java)?

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

问题描述

我发誓我看到无处不在,几乎禁用了所有东西(插入匹配的括号等),但是当我打开一个大括号并按回车键时,它会自动缩小下一行的选项卡。有没有办法禁用这个方便的商品?

解决方案


  1. 从菜单中选择项目>属性

  2. 选择 Java代码样式>格式化器

  3. 启用项目特定设置或单击配置工作区设置

  4. 单击编辑... 按钮活动个人资料

  5. 缩进标签中,取消选中所有缩进选项


I swear I looked everywhere, and disabled almost everything (insertion of matching brackets etc), but when I type an opening brace and hit enter, it auto-indents the next line with a tab. Is there a way to disable this "handy" "commodity"?

解决方案

  1. From the menu go to Project > Properties
  2. Select Java Code Style > Formatter
  3. Check the box for Enable project specific settings OR click Configure Workspace Settings
  4. Click the Edit... button for the active profile
  5. On the Indentation tab uncheck all of the Indent options

这篇关于如何在Eclipse Helios(Java)中禁用自动缩进?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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