Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Consider context for best match "tab completion"

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
Codeplug Posted - Mar 18 2016 : 11:23:39 AM
I've been bitten a few times due to my hasty use of tab-completion when I start to type out a variable name. For example:

const bool bSomeBoolean = ...
const bool bSomeBooleanOther = ...

if (bSomeBoolean && bSomeBoolean)

Yes, static analysis or a descent compiler would catch this (or even proper testing on my part).

A nice feature of VA would be to understand that context and make bSomeBooleanOther the primary suggestion while typing out the "bSome" the second time inside the if.

Thanks,
gg
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 18 2016 : 3:09:49 PM
A good point, I have put in a bug report for this to see what our developers make of it:

case=95892

We do our best to make the suggestions helpful, but there are always going to be cases where our best guess is not as helpful as we would like, and suggestions need to be considered before accepting them.

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