2014-02-28 65 views
3

如何停止Light Table IDE將空格替換爲製表符?我已經嘗試在user.behaviours中添加以下行編輯器行爲,但它沒有奏效。如何使用空格而不是製表符停止光表

(:lt.objs.editor/tab-settings true 4 4) 

我想知道我做錯了什麼。

回答

2

這實際上應該工作。我把這條線放到香草Light table安裝中,我得到了標籤,而不是空格。它不會取代你有的空間,但新的是標籤。

這裏是我的配置從user.behaviours:

;; The editor tag is applied to all editors 
:editor [:lt.objs.editor/no-wrap 
      (:lt.objs.style/set-theme "default") 
      (:lt.objs.editor/tab-settings true 4 4)] 
+0

貌似我不得不清除我的LightTable AppData的了。 – Pete

+0

它似乎不再適用,至少不適用於html編輯器。它在user.behaviours文件中工作。 – Pete

+1

好的,要解決它,我還需要在editor.html中添加相同的內容,我不知道爲什麼。 – Pete

相關問題