【发布时间】:2017-12-21 08:37:34
【问题描述】:
我的智能感知有问题 我已禁用所有扩展,但我仍然得到:
抱歉,没有安装 html 文件的格式化程序
有什么想法吗?
VS Code 版本 1.19.1
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": true,
// List of tags, comma separated, where the content shouldn't be reformatted. 'null' defaults to the 'pre' tag.
"html.format.contentUnformatted": "pre,code,textarea",
// Enable/disable default HTML formatter
"html.format.enable": true,
// End with a newline.
"html.format.endWithNewline": false,
// List of tags, comma separated, that should have an extra newline before them. 'null' defaults to "head, body, /html".
"html.format.extraLiners": "head, body, /html",
// Format and indent {{#foo}} and {{/foo}}.
"html.format.indentHandlebars": false,
// Indent <head> and <body> sections.
"html.format.indentInnerHtml": false,
// Maximum number of line breaks to be preserved in one chunk. Use 'null' for unlimited.
"html.format.maxPreserveNewLines": null,
// Whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text.
"html.format.preserveNewLines": true,
// List of tags, comma separated, that shouldn't be reformatted. 'null' defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.
"html.format.unformatted": "wbr",
// Wrap attributes.
"html.format.wrapAttributes": "auto",
// Maximum amount of characters per line (0 = disable).
"html.format.wrapLineLength": 120,
// Configures if the built-in HTML language support suggests Angular V1 tags and properties.
"html.suggest.angular1": true,
// Configures if the built-in HTML language support suggests HTML5 tags, properties and values.
"html.suggest.html5": true,
// Configures if the built-in HTML language support suggests Ionic tags, properties and values.
"html.suggest.ionic": true,
// Traces the communication between VS Code and the HTML language server.
"html.trace.server": "off",
// Configures if the built-in HTML language support validates embedded scripts.
"html.validate.scripts": true,
// Configures if the built-in HTML language support validates embedded styles.
"html.validate.styles": true,
谢谢
【问题讨论】:
-
设置看起来不错!你可以卸载并重新安装 VSCode 吗?
-
是的,我有,但有趣的是,我通过切换当前打开的项目并将其切换回来解决了问题
-
我也注意到
-
如果您在安装 VSCode 时遇到持续问题,可能值得提交一个错误,以便团队可以调查并希望解决问题。单击 VSC 窗口右下角的笑脸,然后单击“提交错误”。这将在他们的 Github 页面上打开一个“新问题”窗口,其中包含有关您的安装的必要信息。