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

后端 未结 4 1478
余生分开走
余生分开走 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:19

    Since fix of: https://github.com/Microsoft/vscode/issues/1228 the editor supports it out of the box. Simply go for:

    1. F1,
    2. indentationToSpaces or indentationToTabs (depending on your need)
    3. Enter.

提交回复
热议问题