I am just considering if there is anyway to make a “comment-like” split lines in VS code editor; The motivation is when source code file gets longer, and more function definition are added in source code, so that source code turns to be huge mess and not easy to read. So in order to improve readability, using some comment to group codes is necessary.
I want to insert split line within the source code, such as
/*
** <Split Line 1> This section is to define some local vars
*/
int a;
int b;
/*
** <Split Line 1> Then some function definition
*/
void fun1(){...}
void fun2(){...}
And it’s not that convenient to input
/*......*/
as a break, so I am asking for if there is a more elegant and built-in way in VS Editor (I am using Visual Studio 2008). It should be kinda similar to the function of /// mark or ‘#-commands’ in VS.
Thank you
Maybe
Regions are what your looking forThis allows you to collapse the code section using the
-icon next to the line numbers.