Wish B4J IDE, lines of code, formatting

dilettante

Active Member
Licensed User
Longtime User
It would be handy if the IDE could do a little bit of processing on lines of code as they are edited.

For example line indentation ends up with a mix of TAB and SPACE characters, and it would be nice if these could be consistently converted to either all spaces or just TABs (plus possible leftover spaces for fractions of a tabstop). Many IDEs insert spaces instead of storing TAB characters in lines of code.

Extra spaces at the ends of lines are also retained, though trimming these would have no side effects or disadvantages I can think of.

Trivial? Perhaps. But as it is the current behavior can get in the way when editing source code and especially when working with source code in other editors, printing source code, etc. where tabstops are at different positions (e.g. every 8 chars instead of every 4).


There is another issue with whitespace that should be eliminated before a left parenthesis in many cases, but the rules are complex enough to require code syntax awareness so this probably is not worth persuing.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…