pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.61k stars 519 forks source link

Output tabwidth size #1065

Closed sigzero closed 3 years ago

sigzero commented 4 years ago

It doesn't seem to be possible to set the output tab size (new to Lua so maybe it's me).

print("The Lua version is:",_VERSION)

The output looks like this:

output

I would like to be able to customize that spacing, if possible.

pkulchenko commented 4 years ago

@sigzero, indeed, it's not being explicitly set right now, so uses the default values. I'll consider adding a configuration setting for it.

sigzero commented 4 years ago

I did some investigating. This isn't the IDE at all. The Lua print statement is doing it. If I change the print statements to io.write statements the indentation is just what I would expect it to be.

I think this can be closed.

pkulchenko commented 4 years ago

@sigzero, thank you for the update. The Lua print statement is responsible for including tab in the output, but the IDE is responsible for showing a specific number of spaces for the tab. I still think that either the default should be smaller in the output or that it should be configurable.