Avery3R
Avery3R

Reputation: 3190

How to disable auto creation of curly brackets({}) in eclipse?

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?

Upvotes: 32

Views: 19805

Answers (1)

Bart Kiers
Bart Kiers

Reputation: 170148

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.

Upvotes: 48

Related Questions