Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA formats after inserting '{' for block-insertion

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000