Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>remove_unused_variableNew to Visual Studio Code? Get it now.
remove_unused_variable

remove_unused_variable

boyq

|
618 installs
| (1) | Free
删除js,jsx中未引用的变量
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

描述: 插件目前只针对js, jsx文件有效,用去去除当前活动页面没有引用过的变量、函数; 其中可以处理的变量范围包括【自定义和import导入的】;可以处理的函数的范围包括【普通函数和箭头函数,以及适当处理函数参数中无效的参数】。目前版本还在不断完善迭代中,如有bug或建议,暂可以联系邮箱:1145389553@qq.com

运行: "command": "remove-unexpected-variable.rmjsvar", window 快捷键: "ctrl+5", mac 快捷键: "cmd+5"

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft