settings - 括号中的 HTML 美化设置

标签 settings adobe-brackets js-beautify

据我所知Brackets Beautify扩展基于 JS Beautify ,因此我有一套可用的首选项设置,但我不知道如何通过 Brackets settings.json 文件更改它们。有谁有想法吗?

这是我当前的设置:

   {
        "debug.showErrorsInStatusBar": false,
        "linting.collapsed": true,
        "wordWrap": false,
        "me.drewh.jsbeautify.on_save": false,
        "styleActiveLine": true,
        "themes.theme": "explicit-brackets-style",
        "fonts.fontSize": "12px"
    }

我假设我只需要添加新的“me.drewh.jsbeautify”行,但这似乎不起作用......

我特别关注 HTML 设置,顺便说一句。

最佳答案

喜欢原版library扩展使用 .jsbeautifyrc设置文件。

如果您在项目根目录中创建这样的文件,内容如下,它应该可以工作:

{
    "eol": "\n",
    "end_with_newline": true,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "indent_inner_html": false,
    "brace_style": "collapse",
    "indent_scripts": "normal",
    "wrap_line_length": 0,
    "wrap_attributes": "auto"
}

另外,我只能推荐你看看我的fork该扩展名,因为它允许 more detailed settings .

关于settings - 括号中的 HTML 美化设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31156142/

相关文章:

css - 如何在 Brackets、Chrome 中启用 CDN CSS?

javascript - 如何使用Theseus 调试 angularjs 应用程序?

npm - `no such file or directory` 在 npm 中安装 js 美化时

vim - 在 Vim 中退出插入模式时自动调用 HTMLBeaufity

Visual Studio 2013 中的 Eclipse 快捷方式

objective-c - 跨用户和跨进程共享设置

php - 在括号实时预览中显示更多信息(边距、填充等)

html - 美化: Force line-break for every or specific tags

iphone - XCode 构建性能设置 - iPhone 应用程序

android - 如何扩展安卓设置菜单?