Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Support for Alt+G and labels + suggestions

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
xMRi Posted - Apr 23 2010 : 02:38:18 AM
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 ;)
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 10 2010 : 11:04:59 AM
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.
znakeeye Posted - May 10 2010 : 02:46:32 AM
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).
accord Posted - Apr 26 2010 : 2:05:33 PM
I was able to reproduce the problem here. It seems VA does not find labels in different scopes.

case=1909
xMRi Posted - Apr 26 2010 : 05:13:35 AM
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;
	}
}
accord Posted - Apr 23 2010 : 04:03:01 AM
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>?

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