T O P I C R E V I E W |
EdQ |
Posted - Oct 09 2019 : 4:44:28 PM Select lines of text to go into a block. Press '{'. VA inserts enclosing lines with '{' and with closing '}' then formats those selected lines, including collapsing multiple spaces into a single one, then tabs selected lines.
To remove format errors, press Ctrl-Z, to undo format changes (also undoes indent), re-select the original lines selected, then press tab to get section moved to the right correctly.
Note: "Format after paste" is not set.
|
1 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Oct 09 2019 : 7:16:51 PM When you surround with {}s, we ask Visual Studio to do the formatting. Visual Studio has a lot of formatting options so you might be able to set it the way you prefer:
Tools -> Options... -> Text Editor -> C/C++ -> Formatting
Does this help? |
|
|