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
 Technical Support
 VA Snippets for other file types
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AndyPandy
Senior Member

27 Posts

Posted - May 25 2010 :  11:35:00 AM  Show Profile  Reply with Quote
Hi,

i used VisualAssist for about 3 years now, but recently i started with UnrealScript .uc development.
I got some similar features running with nFringe, but the feature i still really miss are the VA Snippets.

Not being able to type just "if" and get the whole code and directly can write the comparison inside the "()", is what drives me crazy atm :)

So is there any way to just enable the VA Snippets and Spelling check feature for unreal script (.uc) files?

Edited by - AndyPandy on May 25 2010 11:36:38 AM

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - May 25 2010 :  1:08:44 PM  Show Profile  Reply with Quote
Depending on how close .uc files are to normal C++, or some other language, you can simply tell VA and the IDE to treat them like a know, supported language, as explained in these FAQ's

http://docs.wholetomato.com?W353

http://docs.wholetomato.com?W328

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - May 26 2010 :  1:26:20 PM  Show Profile  Reply with Quote
I tried the tweaks, but seems nFringe is interfering with VA.
So seems i can just have working intellisense from nfringe or VA snippets.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - May 31 2010 :  1:17:31 PM  Show Profile  Reply with Quote
I am not familiar with nFringe.

You could try turning off:

VA Options -> Advanced -> Suggestions -> Include VA Snippets in listboxes

and then manually trigger VA Snippets when you want them.

Perhaps use VA Snippets with "rare" shortcuts, things like "/c" and "/d", so that these shortcuts will not trigger intellisense listboxes from nfringe?

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - Jun 08 2010 :  05:57:27 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline


You could try turning off:

VA Options -> Advanced -> Suggestions -> Include VA Snippets in listboxes

and then manually trigger VA Snippets when you want them.

Perhaps use VA Snippets with "rare" shortcuts, things like "/c" and "/d", so that these shortcuts will not trigger intellisense listboxes from nfringe?



I also tried this and it wont work. Im not 100% sure i changed from VS2008 to VS2010 and it seems to me that VA is simply ignoring the .uc files/project at all?
The shortcut worked in a .cpp project, but in a "nfringe" project i don't get any VA functionality to work.
I tried the add the ".uc" extension to the registry key "ExtSource", but this also don't work.

U maybe know anything else to make sure/test if VA not simply disables/ignores the .uc/nfringe project at all?
I mean the snippet shortcut worked under a cpp project and i dont see why nFringe would block such suggestion if done via a rare shortcut?

thx Andy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Jun 08 2010 :  3:27:36 PM  Show Profile  Reply with Quote
With the solution open, are any of the .uc files listed in VA's Open File dialog?

If you are using a custom project type the VA may not know about any of these .ui files. If the files are listed in the Open File dialog, is VA showing its Context and Definition fields in these files? These are normally shown at the top of the editor.

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - Jun 09 2010 :  05:27:48 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

With the solution open, are any of the .uc files listed in VA's Open File dialog?

If you are using a custom project type the VA may not know about any of these .ui files. If the files are listed in the Open File dialog, is VA showing its Context and Definition fields in these files? These are normally shown at the top of the editor.



If u mean the "VA View" and "Files in Solution" panel, no this panel is empty. But since the suggestions and intellisense comes from nfringe, all i need are the VA snippets and the spell checking. Should those 2 features not work without VA having to parse and know the files?

Any idea how to get this working?

bye Andy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Jun 11 2010 :  11:24:03 AM  Show Profile  Reply with Quote
If VA does not know about / is not active in the files, then it cannot insert snippets into them. So we need to work out if VA is at all active in your solution and files.

I am not sure what you mean by the "Files in Solution" panel. There is a "Solution Explorer" panel in VS2008 and VS2010, and VA has its Open File in Solution dialog:

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

Are any files listed in this VA dialog?

When you open one of your code files, are the VA context and definition fields being shown?

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

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - Jun 14 2010 :  06:08:17 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline


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

Are any files listed in this VA dialog?

When you open one of your code files, are the VA context and definition fields being shown?

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



Sadly the answer is "no" for both, there are no files listed in this dropdown and also the VA navbar is missing if i open a .uc file.

Andy tips to fix/force this?

bye Andy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Jun 14 2010 :  11:38:14 AM  Show Profile  Reply with Quote
Can you try turning on the two options:

Upon opening a file, parse all other unparsed files in the same directory:
VA Options -> Projects -> File Handling -> if Solution is empty
VA Options -> Projects -> File Handling -> if Solution is not empty

and see if this makes any difference. Since you have already edited your registry to tell VA about the .uc file extension this might help. Still, if VA understands that .uc files are code files, then I would expect to see the VA context and definition fields appear when you open one of these files.

Did you follow all of the steps given in this FAQ, for telling VA and the IDE that .uc are C++ code files?

http://docs.wholetomato.com?W328

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - Jun 14 2010 :  12:21:08 PM  Show Profile  Reply with Quote
What i did was adding .uc to the "extensions to include" list, added it to the VA "VANet10/ExtSource" entry.

The VS2010 "VisualStudio/10.0_Config/Languages/File Extensions/.uc" already existed, but had a different key.
But using the ".cpp" key also did not work.

And no it still wont show any files in the VA View or use any VA snippets.

bye Andy
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19023 Posts

Posted - Jun 14 2010 :  6:13:42 PM  Show Profile  Reply with Quote
I have just emailed you about this.

zen is the art of being at one with the two'ness
Go to Top of Page

AndyPandy
Senior Member

27 Posts

Posted - Jun 15 2010 :  07:37:03 AM  Show Profile  Reply with Quote
Thx for the info, but im still using VS2010 atm so its not working.

Guess i have to wait.

bye Andy
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