Author |
Topic  |
|
AjayV
Junior Member
 
India
23 Posts |
Posted - Apr 06 2012 : 01:55:07 AM
|
In short: What I need is Find Symbol, followed by Find References
In detail: I would be working on some source file, but willing to know where GetFieldText might have been used. This symbol is not anywhere near the current code I am working (Or I am lazy to locate it, select it and hit Find References). In this case, I must hit Alt+Shift+S to launch 'Find Symbol' dialog box, type this symbol (GetFieldText) and Enter. It will take me to the symbol. Now, I can do FR on the symbol.
Either way, it is two phase operation: - Select the correct symbol and then hit FR. - Launch FS and then do FR.
I need Find Symbol References (FSR!) - possibly a dialog box, where I would type the symbol-name and hit enter and it will show the Find Reference Results for that particular symbol.
|
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Apr 06 2012 : 10:09:48 AM
|
I have good news. You can do it via using the Find Symbol dialog! Just hit alt+shift+s, type in the symbol name, right click on the symbol and select find references from the menu. If you are a keyboard-only guy, you have 2 ways to do this: after you found the symbol via find references, 1. press shift+alt+tab then context button on keyboard 2. press shift+alt+tab then Ctrl+F
You need Shift+Alt+Tab because you are typing into the editbox by default so you need to move the focus to the listbox.
Hope this helps. |
 |
|
AjayV
Junior Member
 
India
23 Posts |
Posted - Apr 06 2012 : 10:53:37 AM
|
Great. I didn't know about context menu in the FS dialog box. For now it will work for me. And for this quick-fix I have suggestion. The Edit control is smart enough and handles UP/DOWN arrow keys and sends the same to the list-control above, and therefore selection changes. What if the same edit-control can also handle these shortcuts (especially the Ctrl+F). This will make the task more fast (though not the fastest way I was expecting). |
 |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Apr 06 2012 : 11:23:33 PM
|
Sensible suggestion. I have put in a feature request for this:
case=65917 |
 |
|
AjayV
Junior Member
 
India
23 Posts |
Posted - Apr 09 2012 : 02:04:34 AM
|
Did not open another topic for this, though the feature would be new.
Couple of times I need to search symbols I searched before. It wuold be great if FS dialog box can show history of symbols searched for. The same edit box may be made an editable combobox, IMO! :) |
 |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Apr 10 2012 : 1:51:49 PM
|
Interesting idea. However, I think that with comboboxes, you usually use up/down on the keyboard to open the history. We already use it to move the listbox up and down. So you would either need to use the mouse or a special shortcut which wouldn't be intuitive or tangible. Normally, you need to type in a very few characters to find your symbol, thanks to partial mach(es), which shouldn't take more time than using any type of history, IMO. |
Edited by - accord on Apr 10 2012 1:59:33 PM |
 |
|
AjayV
Junior Member
 
India
23 Posts |
Posted - Apr 10 2012 : 2:07:10 PM
|
Yup. I forgot the existing usage of Up/Down! In a large code base, having multiple projects, and even different solutions open (multiple IDEs), we tend to forget (or say, lose track) what symbol we searched for. The symbols are not just structs or classes, but functions, enums, macros etc. VAX is great tool, and features like Add-include, Create Implementation/Declaration really help to get work done faster (without LOSING TRACK). So, IMO, having history of symbols would be super-great feature. |
 |
|
feline
Whole Tomato Software
    
United Kingdom
19177 Posts |
|
AjayV
Junior Member
 
India
23 Posts |
Posted - Apr 10 2012 : 10:43:37 PM
|
I wasn't aware of. But, I don't like those extra view (no offend to VAX, but in general). Just for the sake of "history", I wont use this view. It doesn't have Find References, and is not quick to launch and use. I see VAX is already maintaining the history, so it just need few control(s) in Find Symbol dialog box! :) |
 |
|
accord
Whole Tomato Software
    
United Kingdom
3287 Posts |
Posted - Apr 11 2012 : 8:05:59 PM
|
What about using auto-hide? Anyway, VA View can be used for both Find References and Find Symbol. VA View shows details after hovering, so you can use right click -> Find References over any symbol in the lower part. Alternatively, you just turn on "update on current scope" which will show the current "related" class as you move the caret (so even when you are in a method of that class) or if you turn on "Update on position change" you will get the details of the symbol which the caret is over. I like the former To use Find Symbol, just type the symbol into the second editbox. Give it a test drive, maybe you will like it We would like to keep the user interface as simple as possible, this is why we discuss feature requests in detail. |
 |
|
support
Whole Tomato Software
    
5566 Posts |
Posted - May 14 2012 : 11:28:43 PM
|
case=65917 is implemented in build 1906 |
 |
|
|
Topic  |
|