简体   繁体   English

如何在VC2013 for C ++中关闭自动制表开关/大小写?

[英]How do I turn off auto-tabbing switch/case in VC2013 for C++?

in VC2013 auto-formatting for C++, when i using switch/case statements every time auto tabbing so much. 在VC2013自动格式化C ++中,当我每次都使用tab / case语句进行自动制表时,它是如此之多。 It's uncomfortable to seen the code through small workspace. 通过小型工作区查看代码很不舒服。 and this is not my code standard of other projects. 这不是我其他项目的代码标准。

Any way, the symptoms this. 无论如何,症状就此了。

    switch(pNPCAIAct->m_nActType)
    {
        case MONAIACT_SPAWN_RANDOMPOINT:
        {
                                           if(nSpawnPoint >= 5) break;

                                           nParaMater[nSpawnPoint] = pNPCAIAct->GetActData(0);
                                           nParaMater[5 + nSpawnPoint] = pNPCAIAct->GetActData(1);

                                           ++nSpawnPoint;
        }
        break;
    }

normally it should be like... 通常应该是...

    switch(pNPCAIAct->m_nActType)
    {
        case MONAIACT_SPAWN_RANDOMPOINT:
        {
            if(nSpawnPoint >= 5) break;

            nParaMater[nSpawnPoint] = pNPCAIAct->GetActData(0);
            nParaMater[5 + nSpawnPoint] = pNPCAIAct->GetActData(1);

            ++nSpawnPoint;
        }
        break;
    }

this is the what i want result. 这就是我想要的结果。 can you see the different gap of tabs? 你能看到不同的标签间隙吗?

and strange thing is, it's "taaaaaaabbing" only switch/case statement. 奇怪的是,它只是“ taaaaaaabbing”开关/案例语句。

It was i what touched some kind of text editor settings. 这是我触及某种文本编辑器设置的原因。 how do i turn off the "taaaaaaaaaaaaaaaaaaaaaabing" 我如何关闭“ taaaaaaaaaaaaaaaaaaaaaaaabing”

I just reinstalled. 我刚刚重新安装。

DONE...... 完成...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM