Author |
Topic |
|
jzq740176597
Tomato Guru
China
343 Posts |
Posted - Jan 10 2024 : 01:47:00 AM
|
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
|
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 |
|
|
jzq740176597
Tomato Guru
China
343 Posts |
Posted - Jan 10 2024 : 02:00:46 AM
|
Any interesting BUG found:
delete the "//Test" commment line DO the same & THE BEHAVIOUR CHANGED!
|
Creation come from persist! |
|
|
feline
Whole Tomato Software
United Kingdom
19020 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.
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 |
|
|
jzq740176597
Tomato Guru
China
343 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! |
|
|
feline
Whole Tomato Software
United Kingdom
19020 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 |
|
|
|
Topic |
|