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
 May write comment need IntelliSense and Snippet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jzq740176597
Tomato Guru

China
346 Posts

Posted - Dec 04 2012 :  05:08:34 AM  Show Profile  Reply with Quote
Good code is must have sufficient code-comment for the reader or the programmer.
Good source code will be definitely well commented.
Mant times I wirte the code-comment ,hoped the VA can supply the IntelliSense and Snippet as the regular code writing.

I make sense because the IntelliSense ,Snippet are so wonderful and powerful feature of VA,if the comment can get the help from VA,Then I needn't to use the VA snippet firstly at the regular code text ,and Ctrl+C -> Paste tedious steps everytime. Or can have a option maybe.

Regards.
Jzq

Creation come from persist!

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 04 2012 :  11:18:44 AM  Show Profile  Reply with Quote
Symbols in comments
You can trigger listboxes containing symbols from your code if you press ctrl+space after you started typing the symbol name:


Snippets in comments
VA is able to insert snippets whose shortcut starts with a # character. So if you name it #mysnippet, VA will offer it when you type "#my".

Edited by - accord on Dec 04 2012 11:32:13 AM
Go to Top of Page

jzq740176597
Tomato Guru

China
346 Posts

Posted - Dec 04 2012 :  7:27:07 PM  Show Profile  Reply with Quote
Wonderful!
I have tried these feature,it's so greate!
By the way,I found a bug.I'm from china.I found when the comment has Chinese chars preceding. ctrl+space do not work.When I delete them,it will work.

class DTLDATA_DECL dtlBBNode
	: public dtlNode
{
	DTL_DECLARE_ENT_INTERFACE(dtlBBNode)
public:
	//-++?-?+?+?-?+?+?-?+?+?+?+?+?+?+?,+?+?-++?-?+?+?+?+?+?+?+?+?-+-?-?+?+?+?-?+?+++?+?
	virtual dtlEntity* OwnerPtr() const;//+?+?-?+?dtl [ctrlSpace]

But if I delete "+?+?-?+?",type dtl press Ctrl+space. the list boxs with dtlBBNode,dtlNode .. etc will appear!

My Cpp is Ansi.The Setting of region & languange is correct.
VA 1918 ,VS2008 sp1, win7 x86 sp1

Creation come from persist!
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 04 2012 :  10:34:53 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=20817
Go to Top of Page

jzq740176597
Tomato Guru

China
346 Posts

Posted - Dec 05 2012 :  02:24:52 AM  Show Profile  Reply with Quote
Btw,I ask another question may just about the IDE.
VS2008 sp1.
Many Time I want to make clear for myself which file which I currently operated in the text-editor is located in the solution-view.But just because the focus is now in the text-editor.

So even the file is auto-selected in solution-view.But the color is not obvious.It's light grey and hard to distinguishe with others.

like:



It's hard to find it,ha. So everytime I have to :
(1)Firstly ,switch to solution-view with Hotkey,To Clear where the current file located in solution-view.



(2) swtich focus back to text-Editor.

Any method? I cann't find some setting about the color when solution losing the focus.

Thanks in advance.

Creation come from persist!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19179 Posts

Posted - Dec 06 2012 :  7:30:14 PM  Show Profile  Reply with Quote
The text editor tells you the name of the current file. If you are using tabs then the current tab is always visible, and this shows the file name. If you are using multiple documents then the current file name is shown in the IDE title bar.

When the caret is at file scope, not in any functions, the VA Definition field shows the full path and file name for the current file.

VS2008 is picking up this colour from Windows, to change it under Windows XP change:

Control Panel -> Display -> Appearance tab -> Advanced -> Item = 3D Objects, Color 1

note this will change the colour of quite a few other things as well.

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

jzq740176597
Tomato Guru

China
346 Posts

Posted - Dec 06 2012 :  8:40:34 PM  Show Profile  Reply with Quote
Thanks!

Creation come from persist!
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