简体   繁体   English

我为vs code安装的live sass编译器插件不在我的css文件后面?

[英]The live sass compiler plugin I installed for vs code does not follow my css file?

enter image description here在此处输入图像描述

My css file does not translate the codes in my scss file and adds these comment lines, if anyone knows the reason, I would appreciate it.我的 css 文件没有翻译我的 scss 文件中的代码并添加了这些注释行,如果有人知道原因,我将不胜感激。

There are two 'Live Sass Compiler'.有两个'Live Sass Compiler'。 Old one with more than 2 millions downloads, but last time updated in 2018. And new one with 80 thousands downloads, but it supports all new features. 的下载量超过200万,但上次更新是2018年。 的下载量8万,但支持所有新功能。 Try to use newest, it might help.尝试使用最新的,它可能会有所帮助。

You need to check sass live compiler config file (settings) where you can describe what file types you want to compile and also choose the path you need to your css file.您需要检查 sass 实时编译器配置文件(设置),您可以在其中描述要编译的文件类型,并选择 css 文件所需的路径。 Compiler creates css file automatically.编译器自动创建 css 文件。

Open extension settings and you will see That's my config打开扩展设置,你会看到 That's my config

 "liveSassCompile.settings.formats": [
{
  "format": "expanded",
  "extensionName": ".css",
  "savePath": "/css"
}

], ],

If you have done this correctly - I think the problem is syntax inside your sass file如果你做对了——我认为问题出在你的 sass 文件中的语法

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 实时服务器已安装但无法在 VS 代码中运行 - Live server installed but not working in VS code Mini-css-extract-plugin不会将我的css与sass捆绑到一个文件中 - Mini-css-extract-plugin doesn't bundle my css into one single file with sass html 文件中的 javascript 在我使用 VS Code 的实时服务器中工作正常,但如果我在本地打开 .html 文件,它就不起作用 - javascript in a html file works fine in my live server using VS Code but if i open the .html file locally it doesn't work CSS 未保存在 Live Server 中(VS CODE) - CSS not saving in Live Server (VS CODE) ReactApp-当我在VS代码编辑器中将js文件中的更改保存时,浏览器不会刷新页面。 - ReactApp - The browser does not refresh the page when i save changes in my js file in VS code editor . 我无法在带有已安装的phonegap插件的Eclipse中使用CSS,JavaScript文件 - I can't use css, javascript file in eclipse with installed phonegap plugin 如何在 vs 代码中更新我的配置文件? - How do I update my config file in vs code? 如何编写用于处理“实时”元素的插件? - How should i write my plugin for working with “live” elements? 为什么此代码可以在 Atom/Live Server 上运行,但当我从文件资源管理器单击文件本身时却不起作用? - Why does this code work on Atom/Live Server but does not work when I click on the file itself from file explorer? 在编辑css文件时,如何强制Visual Studio遵循自定义CSS模板? - How can I force Visual Studio to follow a custom CSS template when I edit my css files?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM