resharper fold if statement
// Before
if (x > 10) {
// do something
}
// After
if (x > 10) { ... }
- Open the C++ file in the Visual Studio with ReSharper installed.
- Locate the if statement that you want to fold.
- Place the cursor on the if statement.
- Press the "-" key (minus key) or use the context menu to select "Code | Folding | Collapse".
- The if statement should now be folded into a single line.