Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA formats after inserting '{' for block-insertion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EdQ
New Member

USA
2 Posts

Posted - Oct 09 2019 :  4:44:28 PM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000