-
安装
eslint
插件 -
ctrl+shift+p
打开Settings
,配置:editor.codeActionsOnSave{ "source.fixAll": true }
-
打开
VSCode
右下角状态栏ESLint
图标,查看ESLint
的运行状态,确保ESLint
正常运行,配置:"eslint.alwaysShowStatus"
全栈笔记_规范篇(eslint自动格式化代码 - vscode配置)
于 2024-01-25 22:27:55 首次发布
安装eslint
插件
ctrl+shift+p
打开Settings
,配置:
editor.codeActionsOnSave{
"source.fixAll": true
}
打开VSCode
右下角状态栏ESLint
图标,查看 ESLint
的运行状态,确保 ESLint
正常运行,配置:
"eslint.alwaysShowStatus"