Home

zhangyiqun

Thoughts, stories and ideas.

Research 2014年以前 スーパーマリオ 关于

23 Nov 2010
Textmate中写Haml的缩进问题

话说程序里有段JS是从以前写的代码里复制来的,但是一运行程序就报缩进错误,估计是tab和空格混乱导致的(这种问题最烦人),翻阅textmate手册,用此办法最终解决问题了

原文 http://manual.macromates.com/en/working_with_text

TextMate can use spaces instead of tab characters. This is done by clicking the “Tab Size” pop-up in the status bar and enabling Soft Tabs.

This setting will only affect the current language and all languages with a common root that do not have the option set yet. The same applies to the state of spell checking, soft wrap and the actual tab size.

Tab Size Settings

When soft tabs are enabled, TextMate will for the most part act exactly as if you were using hard tabs but the document does indeed contain spaces.

Research 2014年以前 スーパーマリオ 关于