方式一
效果
第一步: File
-> Settings
-> Editor
-> Code Style -> Python
(其他的語言代碼,同理) -> 在Tabs and Indents
選項卡中,勾選
-
Use tab character
第二步:
File
->Settings
->Editor
->General
->Appearance
->勾選
-
“Show line numbers”
-
“Show whitespaces”
-
“Show method separators
方式二
Pycharm設置讓製表符顯示爲→ - IT測試老兵 - 博客園
https://www.cnblogs.com/fighter007/p/9502345.html
pycharm怎麼設置讓製表符顯示爲→,像這個樣子的 - 製表符與空格的區別 - 234問答
https://wenda.game234.com/q/6981178.html