How to format file or selection in ZeroBrane

180 views Asked by At

Is there a menu command or a plugin to format the whole file or the selection?

I tried Correct Indentation, but it did nothing to the following code.

local     x = 'Hello' y = 'world' if y..x == 'worldHello'then  print('OK')    end
1

There are 1 answers

2
Paul Kulchenko On BEST ANSWER

ZeroBrane Studio will adjust the indentation, but it will not break the lines to do a complete formatting (this is why you don't see any difference on your line of code). You may have to use something like LuaFormatter for this.