错误4 SA1027:不允许使用选项卡。请改用空格 [英] Error 4 SA1027: Tabs are not allowed. Use spaces instead
本文介绍了错误4 SA1027:不允许使用选项卡。请改用空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我收到的错误如下:
错误4 SA1027:标签是不允许。请改用空格
我已经检查了以下设置
工具 - 选项 - 文本编辑器 - C# - 使用空格的选项卡...
单击编辑 - 高级 - 格式文档。
。我也做过ctrl + k + d。但没有用。
这对我不起作用。
请建议
谢谢Harshal
解决方案
首先,你所看到的并不是你所认为的。
你得到的消息与你的正确性无关,这是一个StyleCop错误,只谈你代码的样式。
你可以通过选择全部来消除它你的代码(CTRL + A),而不是Edit-> Advanced-> Untabify Selected Lines
当然,你可以改变StyleCop的规则,如果它在你的力量中......
嗨团队,
它已经解决了。
谢谢。
Harshal
Hi Everyone,
I am getting the error as follows:
Error 4 SA1027: Tabs are not allowed. Use spaces instead
I have check the setting as follows
under Tools - Options - Text Editor - C# - Tabs to uses spaces...
Click Edit - Advanced - Format Document.
.Also i have done ctrl+k+d .But no Use.
It does not work for me .
Please Advice
Thanks Harshal
解决方案
First of all, what you see is not what you think you see.
The message you got has nothing to do with your correctness, it's a StyleCop error and only talk about the styling of your code.
You can get rid of it by selection all of your code (CTRL+A), than Edit->Advanced->Untabify Selected Lines
And of course you can change the rules for StyleCop if it is in your power...
Hi Team,
It was solved .
Thanks.
Harshal
这篇关于错误4 SA1027:不允许使用选项卡。请改用空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文