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
 comment indent driving me nuts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jun 06 2017 :  11:08:27 AM  Show Profile  Reply with Quote
Does anyone know where I can control the auto-format of comments?

I constantly have code such as:


	// obtain a lock and the map itself
	ObtainLock();



Then I paste this before that:
	ASSERT(!bad());	// You probably failed to add DECLARE/IMPLEMENT DYNAMIC to your class

then VS or VA reformats my damn comments to:
	ASSERT(!bad());	// You probably failed to add DECLARE/IMPLEMENT DYNAMIC to your class

			// obtain a lock and the map itself
	ObtainLock();


Thus aligning the later comments to the former.

!@#$!@$!@#$!@#$!@#$ :'(

Seems to me this behavior changed maybe a month ago - and I've been searching for the STFU button ever since.

VS 2015 - Tools|Options|Text Editor|C/C++|Formatting|Indentation - Preserve indentation of comments - on or off do not seem to help :'(

Edited by - sean on Jun 06 2017 4:22:52 PM

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 16 2017 :  8:55:58 PM  Show Profile  Reply with Quote
Check these two places:
Tools | Options | Text Editor | C/C++ | Formatting | When I paste
VAssistX | Options | Editor | Format after paste
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