简体   繁体   中英

Unable to open scss file from path without extension in VSCode

In VSCode when I click import path without extension eg @import '../styles/mixins'; I get: 在此处输入图像描述

So I need to use @import '../styles/mixins.scss'; Is there any configuration or extension to VSCode to make it work for both - with and without extension?

It's impossible. If your file is mixins.scss then you have to import the file mixins.scss with this command @import '../styles/mixins.scss' . The file mixins doesn't exist so you can't run the command @import '../styles/mixins' . It's all in the error code, "File Not Found"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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