括号禁用自动完成功能

时间:2017-10-18 04:44:24

标签: jquery text-editor brackets

我刚开始使用文本编辑器Brackets。当我输入<时,>会使用结束标记< / p >对其进行自动填充。我尝试调整首选项页面,但在退出编辑器并重新打开它之后,它会抛出一个错误,即首选项文件位于不正确的.json文件中。

{
    "brackets-eslint.gutterMarks": false,
    "closeBrackets": false,
    "smartIndent": false,
    "brackets-eslint.useLocalESLint": false,
    "fonts.fontSize": "12px",
    "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace"

    // Sets the tag closing options
    "closeTags": {

    // An array of tags that should not be auto-closed
    "dontCloseTags": ["footer", "img", "p", "section", "article"],

    // An array of tags that when opened has a blank line
    "indentTags": [],

    // Close when / of closing tag is typed
    "whenClosing": true,

    // Close when > of opening tag is typed
    "whenOpening": true
}

有任何帮助吗?

1 个答案:

答案 0 :(得分:0)

用户指南位于here。转到调试 - &gt;首选项,它将打开一个JSON文件。将closeBrackets设为false

括号中的JSON解析器非常严格。这是我的示例配置工作(经过几次尝试)。

{
    "brackets-eslint.gutterMarks": true,
    "brackets-eslint.useLocalESLint": false,
    "fonts.fontSize": "12px",
    "closeBrackets": false,
    "code-folding.enabled": false,
    "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
    "closeTags": {
        "dontCloseTags": ["html"],
        "indentTags": [],
        "whenClosing": false
    }
}
相关问题