resharper fold if statement c+

The ReSharper shortcut for folding an if statement in C++ is Ctrl + NumPad Minus. This command collapses the if statement, hiding its contents, making the code easier to navigate through. If you want to expand the folded if statement, you can use Ctrl + NumPad Plus.