Author |
Topic ![Next Topic Next Topic](icon_go_right.png) |
|
jzq740176597
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
China
341 Posts |
Posted - Jan 10 2024 : 01:47:00 AM
|
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/202411014645_1.jpg)
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/202411014649_2.jpg)
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
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
China
341 Posts |
Posted - Jan 10 2024 : 01:56:27 AM
|
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>)
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/202411015617_00.jpg)
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/202411015622_01.jpg)
|
Creation come from persist! |
Edited by - jzq740176597 on Jan 10 2024 01:57:26 AM |
![Go to Top of Page Go to Top of Page](icon_go_up.png) |
|
jzq740176597
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
China
341 Posts |
Posted - Jan 10 2024 : 02:00:46 AM
|
Any interesting BUG found:
delete the "//Test" commment line DO the same & THE BEHAVIOUR CHANGED!
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/20241102027_02.jpg)
![](https://forums.wholetomato.com/forum/uploaded/jzq740176597/20241102039_04.jpg)
|
Creation come from persist! |
![Go to Top of Page Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jan 10 2024 : 08:56:38 AM
|
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.
![](https://forums.wholetomato.com/forum/uploaded/feline/202411085427_cs_line_comment_before.png)
After pressing / all of the 5 selected lines are updated with // and no blank lines are inserted.
![](https://forums.wholetomato.com/forum/uploaded/feline/202411085447_cs_line_comment_after.png)
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 Go to Top of Page](icon_go_up.png) |
|
jzq740176597
Tomato Guru
![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif) ![](icon_star_green.gif)
China
341 Posts |
Posted - Jan 10 2024 : 10:01:05 PM
|
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 Go to Top of Page](icon_go_up.png) |
|
feline
Whole Tomato Software
![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif) ![](icon_star_red.gif)
United Kingdom
18915 Posts |
Posted - Jan 11 2024 : 08:43:07 AM
|
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 Go to Top of Page](icon_go_up.png) |
|
|
Topic ![Next Topic Next Topic](icon_go_right.png) |
|