括号禁用自动完成

Brackets disabling autocomplete

我刚开始使用文本编辑器 Brackets。当我键入它时 <p> 自动完成它并带有结束标记 </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
}

有什么帮助吗?

用户指南位于 here。转到 Debug -> Preferences,这将打开一个 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
    }
}