Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Support for Alt+G and labels + suggestions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Apr 23 2010 :  02:38:18 AM  Show Profile  Reply with Quote
A goto is rare in the C/C++ language, but they occur.
Nice would be if located on a goto label, Alt+G would jump to the label.
goto's are often used in greater code blocks and switch statements to "escape" to a far location. A Alt+G support would help.


Also nice (I saw a suggestion 2 years ago), if there is an autocomplete or suggestions if you type goto.
This is only nice. I just scanned my code and found in most cases only one goto in the corresponding scope ;)

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 23 2010 :  04:03:01 AM  Show Profile  Reply with Quote
I just tried and it worked for me using VA1819. What visual assist and visual studio version are you using?

Is this working in simple cases like when a function contains only a label and a goto like:

test:;
goto test;

for you?

Suggesting also worked for me after I started typing the label. Do you mean a listbox should automatically pop up after you type goto<space>?
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - Apr 26 2010 :  05:13:35 AM  Show Profile  Reply with Quote
OK! I had a few similar code passages where VA1819 failes.
Suggestions work! Thats OK. ALT+G doesn't work in this code:
void Foo()
{
	int i;
	switch (1)
	{
	case 1:
		if (i==5)
		{
			goto Test;
		}
		break;
	case 2:
Test:
		{
			int j;
		}
		break;
	}
}

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

Edited by - xMRi on Apr 26 2010 05:14:12 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 26 2010 :  2:05:33 PM  Show Profile  Reply with Quote
I was able to reproduce the problem here. It seems VA does not find labels in different scopes.

case=1909

Edited by - accord on Apr 27 2010 03:34:08 AM
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - May 10 2010 :  02:46:32 AM  Show Profile  Reply with Quote
This would be nice for "continue" and "break" too. Sometimes you see a "continue" statement, and wonder where it would take you (e.g. huge while loops).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - May 10 2010 :  11:04:59 AM  Show Profile  Reply with Quote
For the continue and break cases, the VA Move Scope commands should help here:

http://www.wholetomato.com/products/features/move.asp

since you can sit in the middle of the loop and use Alt+Up Arrow or Alt+Down Arrow to jump to the top or bottom of the loop.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000