Author |
Topic |
|
znakeeye
Tomato Guru
379 Posts |
Posted - Jan 20 2008 : 6:34:22 PM
|
What do you do when you want to go to the header of class CMyClass? If you ask me, "Find Symbol" is not so useful in this case. VA Outline eats resources, so I have it disabled most of the time. So...
What I usually do is typing the darn class name in one of my source files (possibly checking it out), and then Alt+G to it. Is there a better way? If not, here is my idea:
If Alt+G is pressed (or any other suitable keyboard shortcut) when no symbol is selected, a simple "Go to symbol" dialog pops up where you type CMyClass<enter> and voil+?, you simulated Alt+G! |
|
schoenherr
Tomato Guru
Germany
160 Posts |
Posted - Jan 21 2008 : 02:06:11 AM
|
you can use "find symbols in workspace" shift-alt-s. |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Jan 21 2008 : 02:40:29 AM
|
It gives me way too many matches. |
|
|
feline
Whole Tomato Software
United Kingdom
18991 Posts |
Posted - Jan 21 2008 : 3:33:14 PM
|
What about the "Open File" dialog? Alt-Shift-O? That seems to do exactly what you want. |
zen is the art of being at one with the two'ness |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Jan 22 2008 : 09:56:08 AM
|
What if I don't know where the class is? Like CWnd, CDialog, or similar. "Open File" is not the way to go. |
|
|
feline
Whole Tomato Software
United Kingdom
18991 Posts |
Posted - Jan 22 2008 : 8:50:15 PM
|
For classes that are not defined in your solution you will need to use Alt-g since they are not going to be listed in the Find Symbols dialog either.
Simulating alt-g with a dialog is going to run into some problems, since alt-g works on code, so it has context. It is designed to take into account things like "using namespace XXX" |
zen is the art of being at one with the two'ness |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Jan 27 2008 : 3:48:42 PM
|
CWnd/CDialog was just an example. We have like 600 classes in our project, so using the symbol finder is a pain in the ass holes (pardon my Borat joke). This is like 5 minutes of coding:
No selection -> Alt+G -> Show edit box where you type the class name (known to VAX). Something like that... |
|
|
feline
Whole Tomato Software
United Kingdom
18991 Posts |
Posted - Jan 28 2008 : 08:34:14 AM
|
Are you talking about VA understanding the current context of the caret?
Consider:
// spot one in file
using namespace std;
// spot two in file
these two locations are different, due to the using namespace line. Our parser is designed to try and work out your position in the current file, but once you are in a dialog you are no longer in the current file.
You may have noticed that sometimes there is a slight delay as you move through the file before things like the context and definition fields are updated.
Ignoring for the moment the problem of asking the parser "where am I?" you also have timing issues to consider.
Just because this sounds easy does not automatically mean that it is easy. |
zen is the art of being at one with the two'ness |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Jan 28 2008 : 08:41:43 AM
|
Ok, you win :) |
|
|
|
Topic |
|