Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

angularNextControlFlowSameLine

Control whether the next Angular control flow code should be on the same line with previous } or not.

Default value is true.

Example for true

Input:

@if (cond) { <div></div> } @else { <div></div> }

Output:

@if (cond) { <div></div> } @else { <div></div> }

Example for false

Input:

@if (cond) { <div></div> } @else { <div></div> }

Output:

@if (cond) { <div></div> } @else { <div></div> }