Visual Assist用了很久了,觉得这个东东确实不错,现在如果离开它写程序那真是叫难受,看其readme.txt文档,发现有template自动填充功能,但没有找到用它的方法,比如它的autotext功能,只要输入一个字母然后按<TAB>键就可以出现tips,可template怎么用呢?哪位用过,请介绍一下,谢谢!
解决方案 »
- 请教各位一个关于winsock的问题
- 有没有可以用C# 或者C++调用的MSN API 资料和函数库呀?
- 我新开发了两个软件包:请大家多多指教
- 如何获得win2000下各个进程当前的CPU
- 请问如何在InstallShield8里制作一个setup.exe文件?
- 求已知R,G,B分量,宽,高转换成BMP文件的源码!谢谢
- 90分 简单问题!
- 好简单的 SDK 问题。(关于窗口过程怎样处理 WM_PAINT 消息?)
- 请问,窗口哪些动作能产生WM_SETFOCUS和WM_KILLFOCUS消息??
- vc++怎样使窗体边缘透明
- 按钮怎么用键盘按键控制阿,请各位大侠教教小弟!
- 大家帮我看一下这个console程序为什么出错
VAssist.tpl to determine how to expand specific symbols and menu
selections as you type. This Readme explains the format of
the file. AutoText appears in tooltips; Code Templates appear in a menu when
the Insert Code Template button is pressed. AutoText accelerates the
typing of often used symbols. Code Templates simplify the entering of
longer, more intricate pieces of code required less frequently.AutoText appears regardless of context, even within comments and
strings, and regardless of valid symbols that begin with the AutoText
names. In a sense, AutoText has precedence over other Auto Completion
possibilities. For example, if you request that I<tab> expand to INT,
INT will appear in a tooltip every time I is typed, even though symbols
iCount and IFound might be valid in the context.A menu of Code Templates appears when you press the Insert Code Template
button. If you select one of the templates, it will be expanded in your
code at the location of the caret.Each entry in VAssist.tpl consists of two parts:1) Name of entry followed by ':\r\n' If the name does not include a space, it describes an AutoText
entry. If it does, it describes a Code Template. AutoText names are case sensitive. Typing i when only an entry for
I exists will not cause AutoText for I appear. The only special characters that may appear in the name of an
AutoText entry are ones that begin C/C++ comments and '#'. Code
Template names can contain any characters but must contain a space. Code Template names can include '&' to specify a menu shortcut.
Otherwise, the first letter of the name will be its shortcut. If
there are multiple entries whose names start with the same letter,
pressing the letter will increment through the matching entries.2) Value of entry followed by formfeed '\f' (displayed as ) The value of the entry is inserted when the entry is selected. Optional text substitutions:
§ Caret location after insertion. If not specified, the
caret will be placed at end of the insertion. You can
change the '§' to another character by replacing the
caretPosChar entry with a different character.
%0 Current selection in editor. If there is no selection,
the caret will be placed at the first occurrence of '%0'
and will override '§' or caretPosChar.
%1 - %8 Dialog prompt for optional, user-specified arguments.
%FILE% Full filename with path
%FILE_PATH% Path of file
%FILE_BASE% Filename without path or extension
%FILE_EXT% Filename extension
%DATE% Year/month/day (formatted as %04d/%02d/%02d)
%YEAR% Year (formatted as %d)
%MONTH% Month (formatted as %d)
%MONTH_02% Month (formatted as %02d)
%MONTHNAME% Abbreviated (3 character) month name
%DAY% Day of month (formatted as %d)
%DAY_02% Day of month (formatted as %02d)
%DAYNAME% Abbreviated (3 character) day name
%HOUR% Hour (formatted as %d)
%HOUR_02% Hour (formatted as %02d)
%MINUTE% Minute (formatted as %02d)Other notes:You create separators in the Code Templates menu by including entries
named 'separator' and without ':'.Entries appear on the Code Templates menu in the order they exist in
VAssist.tpl.VAssist.tpl can be modified and used without restarting VC++. Simply
click the "Insert Code Template" button; you do not need to select from
its menu.Multiple, consecutive formfeeds are allowed and are helpful in
formatting VAssist.tpl. The extra formfeeds do not have any adverse
effect.Reserved entry names are:
readme - Value of the entry is assumed to be a comment.
separator - Creates a separator in the Code Template menu.
caretPosChar - See '§' above.Future updates to Visual Assist may move your "VAssist.tpl" to
"VAssist.old.tpl".(c) Whole Tomato Software, Inc. 1999-2001