2017-10-18 20 views
2

방금 ​​텍스트 편집기 대괄호를 사용하기 시작했습니다. 입력하면 < 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 
} 

도움이 필요하십니까?

답변

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 
    } 
}