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
 Format after Paste works when it should not
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jmoleary
Junior Member

USA
14 Posts

Posted - Dec 16 2022 :  1:49:50 PM  Show Profile  Reply with Quote
I am having a problem where Format After Paste does not limit itself to just pasting. It also works when I do simple block typing.

To illustrate, I like to line my code up in columns so I used Visual Studio's block selector feature to insert a single in 3 lines of code simultaneously. Specifically I hold down the ALT and select a vertical line immediately before the word "get" in 3 lines of code. I then hit the SPACE bar to move the get to the right a bit.

So I changed my code from this...

property Length     GrooveDepth     {         Length    get(); }
property Length     GrooveWidth     {         Length    get(); }
property Length     CircleDistance  {         Length    get(); }
property ShapeEnum^ Shapes          { virtual ShapeEnum^ get() override;  }


...to this (note the 3 getters moved to the right to align up with the 4th line). So far so good.

property Length     GrooveDepth     {         Length     get(); }
property Length     GrooveWidth     {         Length     get(); }
property Length     CircleDistance  {         Length     get(); }
property ShapeEnum^ Shapes          { virtual ShapeEnum^ get() override;  }


But then when I left click anywhere else in the editor window, Visual Assist reformats them like this:

property Length     GrooveDepth {         Length     get(); }
property Length     GrooveWidth {         Length     get(); }
property Length     CircleDistance {         Length     get(); }
property ShapeEnum^ Shapes          { virtual ShapeEnum^ get() override;  }


After playing around, disabling extensions and the like I found that the settings that controls this was Visual Assist's Editor >> Format After Paste checkbox. Once I UN-check that, it fixes the problem.

But this is not a paste. It is an edit. Is there any way to stop VAssist from doing this without disabling that option?

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Dec 19 2022 :  08:45:45 AM  Show Profile  Reply with Quote
Thank you for the clear description. That is really strange, I don't see why format after paste would be triggered under these conditions. It's not happening 100% of the time for me, but its close, certainly very easy to trigger once you know what to do.

case=148946

At least for me, Undo, CTRL+Z is undoing the format step, so hopefully this also works as a work around for you as well.

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