2017-10-18 17 views
2

私はちょうどテキストエディタブラケットを使い始めました。私が<と入力すると、>は終了タグ</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 
} 

ヘルプがありますか?

答えて

0

ユーザーガイドはhereです。 [デバッグ] - > [環境設定]に移動し、JSONファイルを開きます。 closeBracketsfalseに設定します。

大括弧で囲まれた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 
    } 
} 
関連する問題