Can Visual Studio 2013 show mixins from referenced files

余生颓废 提交于 2019-12-11 13:32:59

问题


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

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.).

thanks.


回答1:


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.

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

Example

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

@import "mixins.less";

.some-mixin;

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



来源:https://stackoverflow.com/questions/23093328/can-visual-studio-2013-show-mixins-from-referenced-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!