Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Frustrating auto-replace bug

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
znakeeye Posted - Feb 18 2010 : 04:43:48 AM
VAX 1738 (and all versions I can remember), VS 2008 SP1.

Consider this:
enum MyType { myType1, myType2 };

Then I want to use a MyType variable that does NOT exist - yet:

void foo()
{
    bar(myType); // Suggestion list not used!
}
"myType" is replaced with "MyType" by VAX.

I run into this all the time! I know VAX tries to do the best in this situation, but since I TYPE the whole variable name, VAX should NOT replace it!
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 19 2010 : 10:54:07 AM
The IDE undo command is undoing Repair case for me, in VS2005 and VS2008 with both VA 1812 and VA 1738.
znakeeye Posted - Feb 19 2010 : 09:05:36 AM
Repair Case in MS Word/Office etc is undone when pressing Ctrl+Z. You should have that feature too.
kevinsikes Posted - Feb 18 2010 : 10:49:43 PM
This would be a good use case for Create from Usage. After typing the variable name, invoke the refactoring menu via mouse hover or keystroke (Alt+Shift+Q is the default beginning with VA X 1810, but you can bind your own keystroke to VAssistX.RefactorContextMenu). Choose "Create variable myType" and give it the type MyType.



If you don't want to perform a Create from Usage on the unknown myType symbol, then a simple undo keystroke will revert MyType to myType; there is no need to manually re-type the name. Or you could do as Feline suggests, and turn off the Repair Case feature.
feline Posted - Feb 18 2010 : 10:58:54 AM
If you have:

VA Options -> Advanced -> Correction -> Repair case

turned On then this is by design. Turning off this option stops this from happening.

http://www.wholetomato.com/products/features/case.asp

VA has no way of knowing you are typing an unknown symbol, and typing a known symbol with the wrong case is a common situation.

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