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?
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.
Window -> Preferences -> Java -> Editor -> Content Assist -> Set Auto Activation Delay(ms) : 200ms from 0ms in my case.
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.
From Eclipse's main window, choose Window and then Preferences. Then choose Java, Editor and then Typing to get the following screen:
and un-check {Braces}.
Tested on Eclipse Helios.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With