[Wish] Code Autoformatfing in IDE

Djembefola

Active Member
Licensed User
Longtime User
the following line of code

B4X:
x=y+z

should be always autoformatted (filled with blanks) to

B4X:
x = y + z

the second line is better readable, but it requires 4 additional keystrokes.
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
+1 for Penko's auto indent if it means properly indenting pasted code like Visual Studio does.

-1 for forced/required auto formatting. I used an IDE once that required certain formatting and I hated it. One thing it did which was really annoying was block formatting Function/Sub declares where each parameter was on its own line. If this is implemented there will have to be options/rules/formatting available for it. In long functions I often like to eliminate spaces around + and & (as well as commas) to save from so much scrolling. I also often use different formatting depending on how = is used since it means two things in BASIC and there isn't an := or == to use:

B4X:
If x = y then x= 0

To make things easier to read I'd much rather see current parameters in Sub tooltips appear in bold or a different color and get the new auto documentation in comment tooltips more reliable.
 
Last edited:
Top