How do I disable auto-indent in Eclipse Helios (Java)?

纵然是瞬间 提交于 2019-11-29 15:25:57
  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

White Fang gave you the correct answer, but I will give you a guide how to find options that you need:

  1. Open Window > Preferences (or Project > Properties)
  2. Type the word you need in the search box.

The search in settings is extremely useful. When you type "indent", it would filter the irrelevant items in the tree.

The right thing to do here is to disable smart insert mode completely (Edit > Smart Insert Mode), or configure the Smart Insert Mode (Windows > Preferences > Java > Editor > Typing).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!