简体   繁体   English

Yeoman Ember Generator:如何在生成的代码中每个缩进获得4个空格?

[英]Yeoman Ember Generator : How to get 4 spaces per indent in generated codes?

I am trying out Yeoman Ember Generator. 我正在尝试Yeoman Ember Generator。 The files generated are using 2 spaces , while I want to use 4 spaces per indent level. 生成的文件使用2个空格 ,而我希望每个缩进级别使用4个空格 How do I go about changing that? 我该如何改变呢? Is there a setting somewhere, or do I need to modify the generator-code itself (which I do not know anything about)? 是否在某处有设置,还是我需要修改生成器代码本身(我对此一无所知)?

I tried Google, SO, Ember Generator Github , and the linked mailing list pointed to post questions here Yeoman Google Group , but couldn't find what I was looking for. 我尝试使用Google,SO, Ember Generator Github进行搜索 ,链接的邮件列表指出了在Yeoman Google Group上发帖的问题,但找不到我想要的东西。

There is currently no way to do that unless you branch form the original repo and change all the templates to use 4 space. 当前无法执行此操作,除非您分支形成原始存储库并将所有模板更改为使用4个空间。

Though that a known issue, so they'll probably fix it soon: https://github.com/yeoman/generator/issues/285 虽然这是一个已知问题,所以他们可能会尽快解决: https//github.com/yeoman/generator/issues/285

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM