括号禁用自动完成
问题描述:
我刚开始使用文本编辑器括号。当我输入时<
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
}
}