VSCode AutoPrefixer 扩展不起作用

Kim*_*nce 1 autoprefixer visual-studio-code

我安装了 AutoPrefixer 插件,试图运行它但它不起作用。

我突出显示我的所有 CSS,然后点击命令托盘,然后点击 AutoPrefixer:run。

没发生什么事。我错过了一步吗?

小智 6

我有同样的问题,并设法通过在 settings.json 中为 Autoprefixer 选项添加此选项来解决:

"autoprefixer.options": {
        "browsers": [
            "last 4 versions",
            "ie >= 9",
            "> 5%"
        ]
    }
Run Code Online (Sandbox Code Playgroud)

添加后,选择所有 css 并像以前一样点击 autoprefixer 并且应该可以工作。原来的答案来自这里,希望这能像我一样解决你的问题:https : //github.com/mrmlnc/vscode-autoprefixer/issues/122#issuecomment-629762093