How can I convert tabs to spaces and vice versa in an existing file

后端 未结 4 1445
余生分开走
余生分开走 2021-01-30 02:48

I cannot figure out how to do this for the life of me apart from doing a find-replace on 4 spaces and converting to tabs (Version 0.10.2). I can\'t think of an editor/I

4条回答
  •  一个人的身影
    2021-01-30 03:17

    If you are trying to convert non-leading tabs to spaces (or vice versa) you can use a regex search and replace.

    1. Press CTRL + H
    2. Click the .* button to search using regular expressions.
    3. To search for tabs enter [\t] in Find box.
    4. Enter spaces in Replace box and perform your replace.

    Search box in regex mode:

提交回复
热议问题