* MISLEADING SUBJECT * I had no idea how to put this in words
Sometimes my code goes:
// LOCAL INCLUDES
#include "..."
// SYSTEM INCLUDES
#include <...>
Or:
class myClass {
string var1
// Lambdas
std::function<void(void)> func
public:
...
}
How can I tell C::B to fold the indent stuff after a comment and keep such formatting? VSCode supports this, if anybody wants to know.
PS: My code: https://github.com/AravK/KGB2
I want
// foo
string bar;
foobar fooBar;
to become
You can add
to your comments and you will be able to fold this
for example:
// LOCAL INCLUDES
//{
#include "..."
//}
// SYSTEM INCLUDES
//{
#include <...>
//}
There is now easy way to make this generic... How should a parser know where to start folding and where to stop?