I'm planning to work on this one. I was too busy lately, but I hope I 
can add the additional behavior over the weekend.

On Fri 18 Jan 2013 05:12:55 PM CET, Luc Bourlier wrote:
> In
> org.scala-ide.sdt.core/src/scala/tools/eclipse/ui/BracketAutoEditStrategy.scala:
>
> >
> >  /**
> >   * Automatically applies several auto edit actions when a user enters or removes
> >   * an opening or closing bracket.
> >   */
> > -class BracketAutoEditStrategy extends IAutoEditStrategy {
> > -    def customizeDocumentCommand(document: IDocument, command: DocumentCommand) {
> > -    command.text match {
> > -      case "{" => // add a closing brace
> > +class BracketAutoEditStrategy(prefStore: IPreferenceStore) extends IAutoEditStrategy {
> > +  def customizeDocumentCommand(document: IDocument, command: DocumentCommand) {
> > +    def isLineEndEmpty = {
> > +      val lineInfo = document.getLineInformationOfOffset(command.offset)
> > +      val str = document.get(command.offset, lineInfo.getLength() + lineInfo.getOffset() - command.offset)
> > +      val (open, close) = (str.count(_ == '{'), str.count(_ == '}'))
> > +      val hasUnmatchedClosingBracket = (open > 0 || close > 0) && open < close
> > +      hasUnmatchedClosingBracket || str.trim.length == 0
>
> Simon, what is the state on this? Do you plan to work on it in this
> pull request, or move it to an other ticket?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/scala-ide/scala-ide/pull/267/files#r2697498>.
>