Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 如何折叠一些没有';在VisualStudio中不能用大括号分隔?_Visual Studio - Fatal编程技术网

Visual studio 如何折叠一些没有';在VisualStudio中不能用大括号分隔?

Visual studio 如何折叠一些没有';在VisualStudio中不能用大括号分隔?,visual-studio,Visual Studio,在开始之前,我为我糟糕的英语道歉。可能很难理解我的意思。:) 在VisualStudio中,某些行可以折叠。比如用括号{}表示潮汐 我是说这个 但我想把这条线折叠起来,什么也没用。 这个 有没有办法把那条线折起来 您可以使用#region和#endregion #include <stdlib.h> #region some stuff here 123; 456; 789; #endregion some stuff here int main() { print("h

在开始之前,我为我糟糕的英语道歉。可能很难理解我的意思。:)

在VisualStudio中,某些行可以折叠。比如用括号{}表示潮汐

我是说这个

但我想把这条线折叠起来,什么也没用。 这个

有没有办法把那条线折起来

您可以使用
#region
#endregion

#include <stdlib.h>
#region some stuff here
123;
456;
789;
#endregion some stuff here
int main() {
    print("hello world");
}
#包括
#这里有些东西
123;
456;
789;
#这里有些东西
int main(){
打印(“你好世界”);
}

您使用的是哪个版本的Visual Sudio?在最新的VS中,您可以折叠任何代码。还有其他折叠代码的方法吗?不使用#pragma区域?oops。很抱歉是VS2015快车。我把另一台电脑弄糊涂了。