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
 Feature Requests
 Merge/Separate lines
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Dusan
Whole Tomato Software

Slovakia
177 Posts

Posted - Nov 13 2013 :  07:57:39 AM  Show Profile  Reply with Quote
It would be fine to have a way to merge and separate lines in a block.

For example C# 2.0 property:

public double Hours
{
  get 
  { 
    return seconds / 3600; 
  }
  set 
  { 
    seconds = value * 3600; 
  }
}


After merge will look like:

public double Hours { get { return seconds / 3600; } set { seconds = value * 3600; } }


and after separate it would look again:

public double Hours
{
  get 
  { 
    return seconds / 3600; 
  }
  set 
  { 
    seconds = value * 3600; 
  }
}


I know I can use regular expressions, but it is not as simple and not always applicable.

Edited by - Dusan on Nov 13 2013 07:58:05 AM

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 25 2013 :  05:46:40 AM  Show Profile  Reply with Quote
Why don't you just wrap the code block in #region #endregion lines? Select the code and press # and if you are still using the default VA Snippet for this, the code will be wrapped in #region #endregion lines for you. You can then collapse and expand this block of code at will.

zen is the art of being at one with the two'ness
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