有没有办法使用制表符而不是空格来执行? [英] Is there a way to enforce using tabs instead of spaces?

查看:250
本文介绍了有没有办法使用制表符而不是空格来执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

了StyleCop提供检查统一使用的空间,但遗憾的是缺乏相反的理念:力源代码中使用的标签。是否有某种方式来添加此功能?它并不一定是了StyleCop,其他工具的欢迎以及

StyleCop offers to check for consistent use of spaces, but sadly lacks the opposite idea: Force source code to use tabs. Is there some way to add this functionality? It does not have to be StyleCop, other tools are welcome as well.

推荐答案

您可以使用的 + StyleCop的插件强制标签的使用。

You can use StyleCop+ plugin to enforce usage of tabs.

下载后 StyleCopPlus.dll 将其放置在自定义规则主了StyleCop文件夹内的文件夹 C:\Program文件(x86)\\ \\StyleCop 4.7\Custom规则或直接在主文件夹。

After downloading StyleCopPlus.dll place it in Custom Rules folder inside the main StyleCop folder C:\Program Files (x86)\StyleCop 4.7\Custom Rules or directly in the main folder.

现在,打开时, Settings.StyleCop StyleCopSettingsEditor ,你将能够设定规则 SP2001:CheckAllowedIndentationCharacters

Now, when opening a Settings.StyleCop with StyleCopSettingsEditor you will be able to set rule SP2001: CheckAllowedIndentationCharacters.

这条规则可以在了StyleCop + 标签下可以找到,在更多自定义规则子选项卡中,格式项下

This rule can be found under the StyleCop+ tab, under the More Custom Rules subtab, under the Formatting heading:

这篇关于有没有办法使用制表符而不是空格来执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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