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
 #region macro ignores indentation
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chris Nahr
Ketchup Master

92 Posts

Posted - Jun 14 2004 :  02:44:02 AM  Show Profile
When you enter a #region or #endregion directive in C#, Visual Studio will auto-align each directive at the current indentation level.

Unfortunately, the #r<enter> macro doesn't do this -- it always goes back to column zero. Is there a way to tell a macro to start each line at current indendation level?

The same applies to the Templates... -> Surround selection with #region menu command (which is defined identically as far as I can tell).

ravensOrb
Tomato Guru

136 Posts

Posted - Jun 14 2004 :  6:51:17 PM  Show Profile
Yea, I just noticed the same thing. Its a little annoying...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 15 2004 :  6:16:25 PM  Show Profile
We acknowledge there is minimal value in "Surround with #region" and the default #region/#endregion template. Neither considers indentation level.

There is no way curently to adjust #indentation of our templates. The current template for #region/#endregion has value only when at zero indentation, and then when writing a region from scratch, ie not surrounding lines of code. Changing the template to just #region does no good since you lose indentation if you accept the expansion.

As a workaround, remove the #region entry from the C# template file. You will not be tempted to accept a suggestion that behaves unexpectedly.

Surrounding with #region has minimal value if you need indentation. No good workaround, other than selecting the region and Edit|Advanced|Format Selection.

case=139

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000