32

When I write

if(true)
{

eclipse auto-completes it to

if(true)
{
    //cursor here
}

Which gets annoying when I want to write an else or else if. Any way to disable it?

Avery3R
  • 3,027
  • 4
  • 24
  • 34

1 Answers1

48

From Eclipse's main window, choose Window and then Preferences. Then choose Java, Editor and then Typing to get the following screen:

enter image description here

and un-check {Braces}.

Tested on Eclipse Helios.

Bart Kiers
  • 166,582
  • 36
  • 299
  • 288
  • 6
    I've done this, but Eclipse is still auto-completing braces and strings. Is there anything else I might be missing? – Jared Nielsen May 03 '13 at 19:09
  • 1
    @JaredNielsen: Same here, any fixes yet? – Ray Dec 19 '13 at 17:24
  • If not working for you, some things to check. When changing settings, click 'Apply' before 'Ok'. There are multiple editors, e.g. for different programming languages. Choose the one(s) you want to change. If all else fails, try restarting Eclipse. Hope this helps. – null Jan 28 '15 at 02:27