Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 why Drag & Drop in VAOutlline Add extra new-line i

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
jzq740176597 Posted - Jan 10 2024 : 01:47:00 AM




C# unity project. VA2058, win10 x64, vs2022 v17.8
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 11 2024 : 08:43:07 AM
That makes sense, thank you for the update I am glad this had a simple solution.
jzq740176597 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
feline 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.
jzq740176597 Posted - Jan 10 2024 : 02:00:46 AM
Any interesting BUG found:

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









jzq740176597 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>)







© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000