VS-Integration - Indentation
Settings: [ ] Indent entities inside namespace [ ] Indent multiline members inside types [ ] Indent single line members inside types [ ] Indent statements inside entities [ ] Indent case label [x] Indent statements inside case block [x] Indent continuing lines [ ] Indent preprocessor lines
First issue:
local n as dword
for n := 1 upto 10
DoSomething()
next
works fine. If you use old style coding, "next n" stays indented:
local n as dword
for n := 1 upto 10
DoSomething()
next n
Second issue:
a begin sequence .... end sequence inside a while loop confuses formatting totally:
CLASS test
CONSTRUCTOR() AS VOID
LOCAL n AS DWORD
WHILE(n<100)
n += 1
BEGIN SEQUENCE
IF n = 10
BREAK
ENDIF
END SEQUENCE
ENDDO
RETURN
METHOD foo() AS VOID
LOCAL x AS STRING
RETURN
END CLASS
Typing RETURN after Method foo() indents the current line and all following lines afterwards. By commenting out BEGIN SEQUENCE and END SEQUENCE everything works fine.
Formatting the code via (sorry, I have a german VS): [Bearbeiten] [Erweitert] [Auswahl formatieren] always works fine even with BEGIN SEQUENCE ... END SEQUENCE