Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 _ after m and shift triggers when mouse-clicking

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
.oisyn Posted - May 09 2025 : 06:00:08 AM
Ok this is a bit of an extreme edge case but I found it anyway :D

If "Insert _ after m and Shift" is enabled, while holding shift and clicking the mouse to select a region, if the location you click is after a single identifier 'm', it will replace the selection you just made with an underscore.

Say you have this line of code, where the caret is indicated by the |
foo(a, b, m, something|);


And then you hold shift and mouseclick to behind the m, like so:
foo(a, b, m|, something);


Visual Studio will then select the ", something" part as expected, but because you're holding shift and you're behind an 'm', Visual Assist will then insert an underscore, overwriting the selection. Result:

foo(a, b, m_);
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 09 2025 : 1:11:42 PM
I am seeing exactly the same thing, thank you for the clear description. I have used inserting _ for years, and I don't think I have ever come across that before, so definitely an odd edge case, but also worth knowing about:

case=165847

Probably not something you will run into to often at least

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