Visual Studio 2013可以显示参考文件中的mixin吗 [英] Can Visual Studio 2013 show mixins from referenced files

查看:90
本文介绍了Visual Studio 2013可以显示参考文件中的mixin吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将鼠标悬停在mixin上时,它会向我显示其属性,这真棒!

When I hover over a mixin it shows me the properties, which is awesome!

但是,我有很多参考文件,但没有显示这些文件.它说,未声明的mixin".考虑到许多将样式分解成类似的部分(重置,网格,字体等),这似乎是一个标准功能.

However, I have many referenced files and it does not show those. It says, "Undeclared mixin". Seems this would be a standard feature considering that many break up styles into like sections (reset, grid, fonts, etc.).

谢谢.

推荐答案

如果我对您的理解正确,则您导入的文件较少,并且希望将鼠标悬停在它们上时对诸如mixin和变量之类的东西有所了解.

If I understand you correctly, you have imported less files and you would like to get intelliSense on things like mixins and variables when you hover over them.

这可以通过引用文件来完成,就像处理JavaScript文件一样.

This can be done by referencing the files in the same way you would with JavaScript files.

示例

/// <reference path="mixins.less" />

@import "mixins.less";

.some-mixin;

您现在可以将鼠标悬停在mixin上,看看它有什么作用!

You can now hover over the mixin and see what it does!

这篇关于Visual Studio 2013可以显示参考文件中的mixin吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆