Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 No refactoring on #define

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
jwiesemann Posted - Aug 06 2008 : 03:44:15 AM
Example:

#define BITMASK 0x200
if (value & BITMASK) ;
value += ~BITMASK;

When I place the mouse on BITMASK in the second line I get a refactoring menu. That is fine.

When I place the mouse on BITMASK in the first line (the #define) I don't get this menu. It is quite annoying to always look for a place where the define is used to rename it. Or even to figure out whether it is used at all without beeing able to use "Find References".

Additionally the refactoring menu doesn't work on the third line, too. The "~" is shown in the same color as the symbol and the Menu says "Refactoring not available on symbol". It seems that the operator is interpreted as part of the symbol.
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Oct 04 2011 : 11:16:49 PM
case=18979 is a duplicate of case=4312, and is fixed in build 1859
feline Posted - Aug 07 2008 : 10:52:59 AM
I am seeing both problems, thank you for the clear descriptions. Having to put a space between the ~ and the variable name is:

case=18979

The hovering refactoring menu not appearing where the #define is created is:

case=9622

There are a couple of work arounds for this. Either use VA's Shift + right click menu on the #define, or select BITMASK on this line and then hover the mouse over the selected text. The refactoring context menu is offered when the text is selected.
jwiesemann Posted - Aug 07 2008 : 04:34:38 AM
quote:

I'm seeing the something similar with build 1647.
On the #define and 'if' lines I can rename and find.
On the '~' line I only have find. If I put a space between '~' and BITMASK then the rename options comes up.

Mark



It doesn't work with my build 1647 on VC6 on the #define line. This is my main problem.

Of course the space does help. I would still consider this a bug.

Joachim
mtwombley Posted - Aug 06 2008 : 11:23:24 AM
quote:
Originally posted by jwiesemann

Example:

#define BITMASK 0x200
if (value & BITMASK) ;
value += ~BITMASK;

When I place the mouse on BITMASK in the second line I get a refactoring menu. That is fine.

When I place the mouse on BITMASK in the first line (the #define) I don't get this menu. It is quite annoying to always look for a place where the define is used to rename it. Or even to figure out whether it is used at all without beeing able to use "Find References".

Additionally the refactoring menu doesn't work on the third line, too. The "~" is shown in the same color as the symbol and the Menu says "Refactoring not available on symbol". It seems that the operator is interpreted as part of the symbol.



I'm seeing the something similar with build 1647.
On the #define and 'if' lines I can rename and find.
On the '~' line I only have find. If I put a space between '~' and BITMASK then the rename options comes up.

Mark

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