gpt4 book ai didi

c++ - for 循环后的 Visual Studio 2010 缩进

转载 作者:行者123 更新时间:2023-11-30 00:41:41 34 4
gpt4 key购买 nike

为什么我在 if block 之后立即出现此行为?我错过了什么吗?

for (;;)
if (/*...*/)
{
// statements
}

// statements indented to match the if indentation instead of the for loop;

最佳答案

Visual Studio 2010 似乎充满了编辑器错误。压痕特别有软管。

每次键入“:”时,只需等待它开始将光标移动到行首即可。

如果您关闭文件并重新打开它,有时可以解决问题......无论如何都会解决一段时间。

关于c++ - for 循环后的 Visual Studio 2010 缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3105857/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com