2011/06/06更新: 後來看到有 whitespace-tmbundle ,裝完之後只要 cmd+s 就會自動清除行末空白以及將 tab 換成 space 。

whitespace-tmbundle

===

用 textmate 的話,可以開 Find in Project (熱鍵: shift+cmd+f)

先把 Regular expression 這個選項打勾,再到 Find 的欄位輸入 [ \t]+$ ,Replace 欄位保持空白。

先點 Find 按鈕讓 textmate 去找,然後再點 Replace All ,最後當然要記得做 Save All (熱鍵: alt+cmd+s)。

arrow
arrow
    全站熱搜

    笨笨小蟹 發表在 痞客邦 留言(0) 人氣()