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
 Moving methods in VA Outline reformats code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

v_v
Senior Member

Russia
29 Posts

Posted - Dec 13 2010 :  12:15:39 PM  Show Profile  Reply with Quote
Hello!

There is an annoying bug when moving any function with VA Outline.
I prefer to have 1-tab indent on the second line of function definition:


But after moving function I see:


(I suppose the same thing happens with the code inside function)
Is it possible to disable such a behavior?

accord
Whole Tomato Software

United Kingdom
3277 Posts

Posted - Dec 13 2010 :  6:00:59 PM  Show Profile  Reply with Quote
Format after paste also applies when you move items in VA outline, you can turn this off here:

VA Options -> Advanced -> Correction -> Format after paste
Go to Top of Page

v_v
Senior Member

Russia
29 Posts

Posted - Dec 14 2010 :  08:36:06 AM  Show Profile  Reply with Quote
Sorry, didn't notice.
Thank you!
Go to Top of Page

v_v
Senior Member

Russia
29 Posts

Posted - Dec 14 2010 :  08:59:22 AM  Show Profile  Reply with Quote
But...
It seems to be two different functions depends on the same checkbox.
I want to reformat code on paste (indent may differ from source to target), but I don't want to have any changes in my code when I just reoder methods.
It's hard to notice such small changes moving many methods at the same time. And it is not very convenient to check this setting all the time :)
Is it possible to do something of it?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Dec 16 2010 :  12:53:54 PM  Show Profile  Reply with Quote
Drag and drop via VA Outline is done via cut and paste in the editor, which is why the format on paste setting is applied here.

As far as VA is concerned, this is the same as re-ordering your code "manually" by selecting it, cutting it and then pasting it into a new location in the file.

zen is the art of being at one with the two'ness
Go to Top of Page

v_v
Senior Member

Russia
29 Posts

Posted - Dec 16 2010 :  3:05:27 PM  Show Profile  Reply with Quote
Yes, this is the same by realization, but not the same by user-logic, I suppose.
I use copy/paste to reorder peaces of code, not whole functions. So I usually inspect the result (there are small changes and they are useful).
When I reorder functions it is something global, I can't inspect it for such small changes as formating (it is very annoying and even diff-tool doesn't help). I even don't suppose they could appear, I didn't ask for them, it's a hidden behavior.
May be I can inspire you to create such a product-feature as separate behavior for this two situations? =)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
17027 Posts

Posted - Dec 17 2010 :  3:28:26 PM  Show Profile  Reply with Quote
You make a good case for this, I have put in a feature request to see what our developers make of it:

case=53417

zen is the art of being at one with the two'ness
Go to Top of Page

v_v
Senior Member

Russia
29 Posts

Posted - Dec 18 2010 :  1:17:33 PM  Show Profile  Reply with Quote
Thank you!
Hope to see it see it in VA :)
(It is to create I think. May be throw registry settings.)
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Feb 29 2012 :  1:26:10 PM  Show Profile  Reply with Quote
case=53417 is fixed in build 1901
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000