www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19353] New: Indent function bodies correctly when generating

https://issues.dlang.org/show_bug.cgi?id=19353

          Issue ID: 19353
           Summary: Indent function bodies correctly when generating
                    overrides.
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

from https://forum.dlang.org/thread/imrhiouthncheeekksny forum.dlang.org:

inside a class, if you type "override" then ctrl-space, it shows a list of
overridable functions. Choose one and it outputs a function stub, but the
generated body is the same indent level as the declaration, e.g.:

  override protected void myFunction() {
  super.myFunction(); <- should be indented one level further
  }

--
Nov 03 2018