编码python时最烦人的就是代码对齐,而且tab和空格还不一样,为了便于对其进行统一,最好在VScode中能把tab和空格显示出来.

  1. 打开setting,在搜索框中输入renderControlCharacters,选中勾选框,即可显示tab.
    在VScode中显示空格和tab符号
    在VScode中显示空格和tab符号
  2. 在搜索框中输入renderWhitespace,选择all,即可显示空格.
    在VScode中显示空格和tab符号

在vscode中显示空格和tab符号

相关文章: