Unknown artist
Unknown artist

Reputation: 947

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

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"?

Upvotes: 4

Views: 8867

Answers (3)

Deepak Azad
Deepak Azad

Reputation: 7923

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).

Upvotes: 0

Bozho
Bozho

Reputation: 597382

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.

Upvotes: 3

WhiteFang34
WhiteFang34

Reputation: 72079

  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

Upvotes: 8

Related Questions