EdQ
New Member

USA
2 Posts |
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.
|
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
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? |
 |
|