2016-05-13 7 views
1

atom-beautifierのhtmlのインデントサイズをタブに設定するにはどうすればよいですか? 私は以下を.jscsrcで試しましたが、何の効果もありません。atom-beautify:タブ付きインデントhtml

{ 
    "html": { 
    "indent_char": " ", 
    "indent_size": 1, 
    "indent_with_tabs": true 
    } 
} 

答えて

3

atom-beautifierパッケージが廃止されており、著者は、ユーザーがatom-beautify packageに移行することを示唆している:

使用してください:https://atom.io/packages/atom-beautifyそれははるかに良いです:)

atom-beautifyパッケージは、Aサポートインデントサイズを設定する.jsbeautifyrc

{ 
    "indent_size": 2, 
    "indent_char": " ", 
    "other": " ", 
    "indent_level": 0, 
    "indent_with_tabs": false, 
    "preserve_newlines": true, 
    "max_preserve_newlines": 2, 
    "jslint_happy": true, 
    "indent_handlebars": true 
} 
0

{ "indent_char": " ", //Tab here. Make sure editor doesn't change it. "indent_size": 1, "indent_with_tabs": true }

私は$ATOMPATH/packages/atom-beautify/.jsbeautifyrc$ATOMPATH/packages/atom-beautify/src/.jsbeautifyrcでこれを入れています。

atom-beautifyは、まだタブでうんざりです。また、Atomの「ソフトタブ」をオフにしてください。ここで

は、スペースを殺すためにいくつかのヒントの要旨です:

https://gist.github.com/zamicol/c5c926500ddde49006122f9e4e52e48f

関連する問題