Wish Properly indenting structures by reformatting the IDE code

positrom2

Active Member
Licensed User
Longtime User
At present (not the worst example, from B4J-code):
B4X:
For i=0 To n1
'glatt(i)=glatt(n1)
a(i)=a(n1)
c(i)=c(n1+1)
b(i)=b(n1)
  d(i)=d(n1)
Next
For i=m2 To 255
'glatt(i)=glatt(m2)
a(i)=a(m2)
c(i)=c(m2+1)
b(i)=b(m2)
  d(i)=d(m2)
Next

After copying to "Bascom-AVR"-IDE and applying "Proper Indent":
Note the green vertical line. For each nested structure an equivalent line is added.
upload_2016-8-4_15-29-1.png

Occasionally I am doing that with the whole code when I have lost overview on how far a structure extends (In B4J I have code where structures extend over a page. Then this procedeure helps a lot).
 
Top