How many spaces for tab character(\t)?

前端 未结 3 500
粉色の甜心
粉色の甜心 2020-12-05 05:02

I want to implement a text drawing function. But I am not sure how \\t works, which means I don\'t know how many spaces I should print for \\t.

3条回答
  •  粉色の甜心
    2020-12-05 06:03

    A Tab character shifts over to the next tab stop. By default, there is one every 8 spaces. But in most shells you can easily edit it to be whatever number of spaces you want (profile preferences in linux, set tabstop in vim).

提交回复
热议问题