1. 程式人生 > >讓sublime text顯示空格,到底是點還是橫槓TabError: inconsistent use of tabs and spaces in indentation

讓sublime text顯示空格,到底是點還是橫槓TabError: inconsistent use of tabs and spaces in indentation

報錯情況:TabError: inconsistent use of tabs and spaces in indentation

 

 

分析,因為前面點部分從網上覆制的,後面橫槓是自己寫的,這種混合寫法會報錯。

 

方案

在sublime text中Preferences->Settings-User中新增以下程式碼:

,
"draw_white_space": "all"

 

新增後的效果:

儲存,重啟ST,搞定

注意不同的專案之間用逗號分開。

認識你是我們的緣分,同學,等等,學習人工智慧,記得關注我。

 

微信掃一掃
關注該公眾號

《灣區人工智慧》