简体   繁体   English

Visual Studio 代码不断创建我的 css 文件,使其与我的 scss 文件位于同一文件夹中

[英]visual studio code keeps creating my css file to be in the same folder as my scss file

Whenever I try placing my css file in a different folder to my sass file, the minute I select the scss watch complier, a new css file gets re-created in the same folder where my scss is placed.每当我尝试将 css 文件放在与 sass 文件不同的文件夹中时,在我选择 scss 监视编译器的那一刻,就会在放置 scss 的同一文件夹中重新创建一个新的 css 文件。

I am trying to keep them separate, is this even an option?我试图将它们分开,这甚至是一种选择吗?

The screenshot shows the different css folders I created trying to keep them seperate, but the watch compiler seems to over-ride this:屏幕截图显示了我创建的不同 css 文件夹,试图将它们分开,但 watch 编译器似乎覆盖了这个:

You need to configure Live Sass Compiler to change the savePath for the compiled files.您需要配置 Live Sass Compiler 以更改编译文件的savePath

"liveSassCompile.settings.formats": [
   {
      "savePath": [Any path you want]
   }
]

Here is the full documentation of the extension and how you can edit VSCode settings . 这是扩展的完整文档以及如何编辑 VSCode 设置

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM