提示截图,之前1.03.2005141版本没有问题
编辑器设置截图
自定义扩展,来自vscode
自定义配置参数
{
"editor.formatOnSave": true,
"editor.renderControlCharacters": true,
"editor.stablePeek": true,
"editor.tabCompletion": "on",
"editor.tabSize": 2,
"editor.fontSize": 12,
"editor.lineHeight": 0,
"editor.wordWrap": "off",
"editor.minimap.enabled": false,
"editor.insertSpaces": true,
"editor.renderWhitespace": "all",
"editor.wordWrapColumn": 120,
"editor.minimap.maxColumn": 50,
"editor.minimap.showSlider": "always",
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.openEditors.visible": 0,
"search.exclude": {
"**/dist": true,
"**/miniprogram_npm": true
},
"files.watcherExclude": {
"**/dist/**": true,
"**/miniprogram_npm/**": true
},
"files.eol": "\n",
"files.trimFinalNewlines": true,
"files.insertFinalNewline": true,
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.activeIconPack": "vue_vuex",
"material-icon-theme.showWelcomeMessage": false,
"javascript.format.semicolons": "remove",
"javascript.preferences.quoteStyle": "single",
"javascript.updateImportsOnFileMove.enabled": "always",
"files.autoSave": "off",
"files.associations": {
"*.cjson": "jsonc",
"*.wxs": "javascript",
"*.wxss": "css"
},
"minapp-vscode.wxmlFormatter": "prettyHtml",
"minapp-vscode.formatMaxLineCharacters": 120,
"minapp-vscode.disableAutoConfig": true,
"minapp-vscode.showSuggestionOnEnter": true,
"minapp-vscode.prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "none"
},
"minapp-vscode.prettyHtml": {
"printWidth": 120,
"usePrettier": false,
"sortAttributes": true
},
"prettier.printWidth": 120,
"prettier.singleQuote": true,
"prettier.semi": false,
"prettier.trailingComma": "none",
"workbench.editor.enablePreview": true,
"workbench.editor.enablePreviewFromQuickOpen": true,
"workbench.colorTheme": "Default Dark+",
"workbench.preferredLightColorTheme": "Default Light+",
"window.autoDetectColorScheme": true,
"explorer.confirmDelete": false,
"less.compile": {
"outExt": ".wxss"
}
}
正式版1.03.2006090,也有这个问题。保存后自动格式化,能格式化成功,但是仍然会提示。上个正式版没有这个问题。
现在试用了1.04.2006302版本,没有再出现这个问题
just in case anyone need it
历史版本 :https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html
保存成功(标签上的 dirty 圆点标记消失)提示是否会自动消失? 试下把 editor.formatOnSave 改成 false 呢?