且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Eclipse Helios(Java)中禁用自动缩进?

更新时间:2022-10-15 22:46:46


  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