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
 why Drag & Drop in VAOutlline Add extra new-line i
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
343 Posts

Posted - Jan 10 2024 :  01:47:00 AM  Show Profile  Reply with Quote




C# unity project. VA2058, win10 x64, vs2022 v17.8

Creation come from persist!

Edited by - jzq740176597 on Jan 10 2024 01:47:42 AM

jzq740176597
Tomato Guru

China
343 Posts

Posted - Jan 10 2024 :  01:56:27 AM  Show Profile  Reply with Quote
I noted that: not only VAOutline BUT editor toggle-comment <"/" key> feature has same behaviour!
(I failed to find keymap in vs-options but I'm sure related to VA "/" key feature <As it been not available if VA disabled>)







Creation come from persist!

Edited by - jzq740176597 on Jan 10 2024 01:57:26 AM
Go to Top of Page

jzq740176597
Tomato Guru

China
343 Posts

Posted - Jan 10 2024 :  02:00:46 AM  Show Profile  Reply with Quote
Any interesting BUG found:

delete the "//Test" commment line DO the same & THE BEHAVIOUR CHANGED!










Creation come from persist!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jan 10 2024 :  08:56:38 AM  Show Profile  Reply with Quote
I am starting with the comment example, since it is a bit more straight forward to test. The VA feature you are using is controlled via the setting:

VA Options -> Editor -> Surround Selection via character toggles

so it isn't a mapped keyboard shortcut, which is why you didn't find it there.

Testing in a simple C# code file, I have turned on visible white space, so you can see what exactly I have selected. I did this selection by placing the keyboard caret in the very first column, holding down Shift and using the Down arrow to select full lines. You can see the caret on the next line, and that the end of line character is selected on each commented line.



After pressing / all of the 5 selected lines are updated with // and no blank lines are inserted.



I cannot reproduce this bug, but I am using a different code file, and I am not sure how you are selecting the code on your system, since the last selected line does not show the end of line character being selected, despite it being selected on other lines.

Can you please turn On:

IDE tools menu -> Options -> Environment -> Documents -> Check for consistent line endings on load

and then close and reload the .cs file where you have this problem, and see if you are warned about inconsistent line endings? It is one possible factor here.

Is this something you can reproduce reliably, and on demand?

Does the same problem happen if you copy the single function to a different, nearly empty .cs file and try commenting the code out there as well? I am wondering if something further up the file could be a factor.

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

jzq740176597
Tomato Guru

China
343 Posts

Posted - Jan 10 2024 :  10:01:05 PM  Show Profile  Reply with Quote
quote:
VA Options -> Editor -> Surround Selection via character toggles


Thanks for this useful info!

quote:
Check for consistent line endings on load


After turn it on Then turned out the file really is. Then everything works like a charm. (inc the first VAOutline drag & drop)

Thanks for your clear desc!
Best

Creation come from persist!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jan 11 2024 :  08:43:07 AM  Show Profile  Reply with Quote
That makes sense, thank you for the update I am glad this had a simple solution.

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