Promoting my universal code beautifier Tabspace

Hi guys! I am a C/C++ programmer from China. I have been interested in zig since I knew of it.

I just wrote a code beautifier tool (universal, suitable for all languages) and uploaded to github:

https://github.com/cnruster/tabspace

Everything is described in the readme. Now I have released 1.0, you can download it and have a try.

Hope you will like it!

3 Likes

At least for zig, spaces are required. For go, ‘gofmt’ enforces tabs.

I could see this being used by C/C++ for those where clang-format is too much.

Something else to checkout if interested in formatting:

This is no longer true. As of zig version 0.10.0 tabs are supported.
zig fmt only supports spaces, but nobody is forcing you to use zig fmt in your own projects.

2 Likes