preferences -> settings -> 在右側的json中加入(左側的默認配置是無法修改的,可以在默認配置中搜到這幾個配置)
// The number of spaces a tab is considered equal to(一個tab相當於多少個空格) "tab_size": 4, // Set to true to insert spaces when tab is pressed(設置為true表示按下tab鍵時插入空格符) "translate_tabs_to_spaces": true, // Set to "none" to turn off drawing white space, "selection" to draw only the // white space within the selection, and "all" to draw all white space(設置成"none"將關閉空格繪制,設置成"selection"只在選中的時候繪制空格,設置成"all"任何時候都繪制空格)
"draw_white_space": "all",