Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

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?

like image 847
Avery3R Avatar asked Sep 10 '11 19:09

Avery3R


People also ask

How do you change curly braces in eclipse?

The simplest and global way: Go to Window -> Preferences. Then in search put: "brace". Select -> Java -> Code Style-> Formatter After opening new window go to brace tab and change it as you prefer.

How do I turn off autocomplete in eclipse?

Window -> Preferences -> Java -> Editor -> Content Assist -> Set Auto Activation Delay(ms) : 200ms from 0ms in my case.

Where is the closing bracket in eclipse?

To see a bracket's pair, click to the right of the bracket. Its matching pair will be highlighted. To jump to the matching bracket, press Ctrl+Shift+P.


1 Answers

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.

like image 176
Bart Kiers Avatar answered Sep 23 '22 18:09

Bart Kiers