Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Alt+G "add-on"

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
znakeeye 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!
8   L A T E S T    R E P L I E S    (Newest First)
znakeeye Posted - Jan 28 2008 : 08:41:43 AM
Ok, you win :)
feline 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.
znakeeye 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 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"
znakeeye 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 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.
znakeeye Posted - Jan 21 2008 : 02:40:29 AM
It gives me way too many matches.
schoenherr Posted - Jan 21 2008 : 02:06:11 AM
you can use "find symbols in workspace" shift-alt-s.

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