本文介绍了如何在Visual Studio 2013的Web Essentials中禁用JSCS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio 2013的最新版本的Web Essentials中禁用JSCS?

How might I disable JSCS in the latest version of Web Essentials for Visual Studio 2013?

我无法在菜单中找到相关选项.

I was unable to find a relevant option in the menu.

我尝试将JSCS配置设置为忽略所有文件.这导致它偶尔生成在我清洗解决方案之前不会离开错误列表"面板的消息.

I tried setting the JSCS configuration to ignore all files. This caused it to occasionally generate messages that wouldn't leave my Error List panel until I cleaned the solution.

推荐答案

Web Essentials 2013 Update 4支持一个.weignore文件,您可以在其中独立地禁用JSCS或其他linter和编译器.

Web Essentials 2013 for Update 4 supports a .weignore file where you can disable JSCS, or other linters and compilers, independently of each other.

请参见 https://github.com/madskristensen/WebEssentials2013/pull/1250

创建一个.weignore文件并添加以下行:

Create a .weignore file and add the following line:

**\*.js jscs

这是该行*.jsjscs部分之间的tab字符.

That's a tab character between the *.js and the jscs parts of the line.

您可以在用户文件夹(C:\ Users \ username)或项目或解决方案文件夹中创建全局.weignore文件.

You can create a global .weignore file in your user folder (C:\Users\username), or in your project or solution folder.

这篇关于如何在Visual Studio 2013的Web Essentials中禁用JSCS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-30 06:54