如何在Visual Studio Code中启用JS重构

时间:2018-10-12 21:04:48

标签: javascript plugins visual-studio-code

我已经在Visual Studio代码中(通过包管理器)安装了JS Refactor插件,以便使用“提取变量”功能。我已经重新启动了VS Code,但仍然无法使用它。我尝试在“文件->首选项->键盘快捷键”选项中进行配置。我找到了可见的命令 enter image description here

将其设置为与alt + v快捷方式一起使用,但是在尝试将字符串提取到变量时,此消息失败,并显示此消息。

enter image description here

我还尝试在按F1(显示控制台)的同时搜索此命令,但似乎在此找不到。

不知道下一步怎么办,或者我错过了一步。任何帮助将不胜感激!

0 个答案:

没有答案