Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ESLint FixerNew to Visual Studio Code? Get it now.
ESLint Fixer

ESLint Fixer

jw397

|
7 installs
| (0) | Free
Run ESLint Fix from context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ESLint Fix Menu for VS Code

此插件提供了一个右键菜单项 "ESLint Fix",用于快速修复当前文件或文件夹的 ESLint 问题。

前置条件

重要:本插件依赖于项目本地安装的 ESLint。

在使用之前,请确保你的项目根目录下已经安装了 eslint:

npm install eslint --save-dev
# 或者
pnpm add -D eslint
# 或者
yarn add -D eslint

插件会直接调用 node_modules/.bin/eslint 来执行修复命令。如果检测不到本地的 ESLint,插件会弹出错误提示。

使用方法

  1. 右键菜单: 在资源管理器或编辑器中右键点击文件/文件夹。
  2. 选择 "ESLint Fix"。
  3. 插件会自动在集成终端中运行修复命令。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft