Author |
Topic |
|
Villy21
New Member
7 Posts |
Posted - Nov 05 2008 : 08:00:34 AM
|
After I use NetBeans IDE I found that highlight word under cursor feature is really helpful.
It help to see all usages of some variable or calls of function very simple and fast. As I know VA have feature "Find Next by Context" an in this case highlight selected word, but this is not the same and you need to press button to make this work.
Can you add this feature to next version ? |
|
GennadiyKorol
Ketchup Master
Israel
54 Posts |
|
Villy21
New Member
7 Posts |
|
GennadiyKorol
Ketchup Master
Israel
54 Posts |
Posted - Nov 07 2008 : 12:40:30 PM
|
Agreed :) |
Correctness might be a theoretical concept but incorrectness has practical implications. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Nov 18 2008 : 4:01:02 PM
|
We have added a feature similar to this internally in VS2002 and above, which should show up in the next beta release:
case=5141
It is not quite the same, since it does require some interaction. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Dec 01 2008 : 07:21:51 AM
|
case=5141 is implemented in build 1707 |
|
|
Villy21
New Member
7 Posts |
Posted - Dec 01 2008 : 08:25:00 AM
|
Yes I already tested it. But still it's not automatic as I advised :) |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Dec 01 2008 : 09:30:38 AM
|
True, but if the feature was automatic then surely the highlighting will disappear as soon as you start scrolling through the code? I want to actually be able to find the highlighted references even when they are not currently visible on the screen, which requires scrolling.
You can bind a keyboard shortcut to the command VAssistX.FindSelected which helps. It is still not automatic, but it is very fast, and does not move the caret. |
zen is the art of being at one with the two'ness |
|
|
Villy21
New Member
7 Posts |
Posted - Dec 02 2008 : 01:18:32 AM
|
As I said before "Automatic Symbol Highlight" is a mus have feature for every IDE. All who used Eclipse or NetBeans or some other IDE can't live without it.
According to how Visual Assist handle change context after cursor move and how is highlight words after VAssistX.FindSelected, "Find References in File" or simple "Find" (new feature of 1707 build- respect!!!) I can suppose that you can do "Automatic Symbol Highlight" in about 2-3 hours of work.
I ask you because no other tool can do this.
PS. I'am not asking you to make some grouping of file Tabs (.cpp+.h) as it was in WinTabs for VS6. Because as I understand this feature can't be done so simple. But with you feature VAssistX.OpenCorrespondingFile is no need to have separate .cpp+.h, now they only waste space for other opened files in Tab list. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Dec 02 2008 : 07:41:51 AM
|
I have never used Eclipse or NetBeans, so I do not know how this feature works in those IDE's. Is it triggered by the mouse hovering over something or by the caret position?
In either case surely the highlighting is very fragile, changing / disappearing as soon as you try to do anything? If it is this fragile, how useful is this really?
Assuming this was a quick feature to add - an assumption I do not automatically agree with, since we have to support multiple IDE's - that is time taken away from something else, like bug fixes. Deciding priorities is not always easy.
I do not understand what you are talking about with .cpp and .h files. If you are working in C++ then you are going to have these files, that's how the language works. If you are not asking for the tab bar to be changed then what are you asking for? |
zen is the art of being at one with the two'ness |
|
|
Villy21
New Member
7 Posts |
Posted - Dec 02 2008 : 08:24:53 AM
|
In Eclipse and NetBeans it work by caret position.
About .cpp and .h I'am talking about tab bar.
Make from this:
Something like this:
In This case you can open more files without scroll in tab bar. But I only suggest, but not ask to do this. |
|
|
holedigger
Whole Tomato Software
145 Posts |
Posted - Dec 02 2008 : 11:45:54 AM
|
Villy, in your NetBeans example, is the highlighting a simple text find, or is it parsing the code?
For example:
{ out.print(""); int print = 7; }
If you put the cursor on either 'print', does it highlight the other?
|
Whole Tomato Software |
|
|
Villy21
New Member
7 Posts |
Posted - Dec 03 2008 : 02:35:54 AM
|
In NetBeans this is code parsing highlighting.
But I don't think that this is principle. |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Jan 27 2009 : 11:00:54 PM
|
case=21926 deals with automatic highlighting of references to the symbol under the cursor.
case=21926 is implemented in build 1715
Enable in VA Options|Advanced|Refactoring|Automatically highlight references to symbol under cursor. |
Whole Tomato Software, Inc. |
|
|
Villy21
New Member
7 Posts |
Posted - Jan 28 2009 : 02:02:03 AM
|
Great work. Thank's!
But can you remove highlight disappear when I type something. (In this new mode) Maybe it's better change highlight only if typed word can be really found somewhere else? Or simply highlight current typing word like in image (4 posts above) ?
Because now if I even press Enter I see how highlight disappear an then in about 1 second appear on the same place. |
|
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
Posted - Feb 02 2009 : 6:14:51 PM
|
I have put in a feature request for some indicator bar like the one shown in the screen shots to show the highlighted marks:
case=23536
I am not sure about the highlighting as you edit, but the disappearing / reappearing highlighting on Enter does seem wrong:
case=23537 |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Mar 30 2009 : 09:29:26 AM
|
case=23537 is fixed in build 1721 |
Whole Tomato Software, Inc. |
|
|
|
Topic |
|