Author |
Topic |
|
v_v
Senior Member
Russia
29 Posts |
Posted - Dec 13 2010 : 12:15:39 PM
|
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
3287 Posts |
Posted - Dec 13 2010 : 6:00:59 PM
|
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 |
|
|
v_v
Senior Member
Russia
29 Posts |
Posted - Dec 14 2010 : 08:36:06 AM
|
Sorry, didn't notice. Thank you! |
|
|
v_v
Senior Member
Russia
29 Posts |
Posted - Dec 14 2010 : 08:59:22 AM
|
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? |
|
|
feline
Whole Tomato Software
United Kingdom
18750 Posts |
Posted - Dec 16 2010 : 12:53:54 PM
|
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 |
|
|
v_v
Senior Member
Russia
29 Posts |
Posted - Dec 16 2010 : 3:05:27 PM
|
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? =) |
|
|
feline
Whole Tomato Software
United Kingdom
18750 Posts |
Posted - Dec 17 2010 : 3:28:26 PM
|
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 |
|
|
v_v
Senior Member
Russia
29 Posts |
Posted - Dec 18 2010 : 1:17:33 PM
|
Thank you! Hope to see it see it in VA :) (It is to create I think. May be throw registry settings.) |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Feb 29 2012 : 1:26:10 PM
|
case=53417 is fixed in build 1901 |
|
|
|
Topic |
|