Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS格式化缩进太大 #10

Open
wangwei123 opened this issue Jun 5, 2017 · 2 comments
Open

JS格式化缩进太大 #10

wangwei123 opened this issue Jun 5, 2017 · 2 comments

Comments

@wangwei123
Copy link

  1. 请问在哪里可以设置缩进2个空格?
  2. 对vue的缩进有些问题
    image
@ghost
Copy link

ghost commented Dec 18, 2017

修改路径:.atom\packages\vue-format\node_modules\js-beautify\js\lib下的三个文件中的配置。
比如:beautify-html.js
其中有一行代码类似这样:options = options || {};
改成: options = options || {
indent_size: 2
}; 这样就好了。
其他的两个文件也可以这样改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@wangwei123 and others