Http://blog.sina.com.cn/s/blog_65f69f4d0100hcqt.htmlsome configurations
C: \ Documents and Settings \ Administrator \ Local Settings \ Application Data \ flashdevelop \ Templates \ projectfiles \ as3project
Self-built directory
C: \ Documents and Settings \ Administrator \ Local Settings \ Application Data \ flashdevelop \ Templates \ projectfiles \ as3project \ owner
---------------------------------
Open the menu tools> Custom arguments... Click the Add button in the lower left corner and set their default values on the right side of the pop-up window (the key corresponds to the variable, and the value is the default value that can be set)
============================
Package $ (cslb ){
/** <Release Notes>
$ (CBI) ****************************************
$ (CBI) * Project name: $ (projectname) (. fla)
$ (CBI) * file name: $ (filename) (.)
$ (CBI) * copyright (c): $ (copyright)
$ (CBI) * CLR version: $ (CLR)
$ (CBI) * File No.: $ (entrypoint)
$ (CBI) * Creator: $ (defaultuser)
$ (CBI) * creation date: $ (timestamp)
$ (CBI) * creation date: $ (# datetime # = mm/DD/YYYY) date created
**************************************** *******
**************************************** *******
$ (CBI) * modifier:
$ (CBI) * Date of modification:
$ (CBI) * description:
$ (CBI )*
$ (CBI )*
$ (CBI )*
**************************************** *******/
Public class $ (filename)
{
Import $ (cslb)
Public Function $ (filename )()
{
}
}
}
======================================
General variables:
Rn $ (seltext)-selected text
$ (Curword)-word at cursor position
$ (Clipboard)-clipboard content rn $ (timestamp)-system time
$ (Curfile)-current file
$ (Curfilename)-current file's name
$ (Curdir)-current file's directory
$ (Openfile)-show open.. File Dialog
$ (SaveFile)-show save... File Dialog
$ (Opendir)-show dialog to select a directory
$ (Shorttopdir)-user desktop directory
$ (SystemDir)-Windows System directory
$ (Programsdir)-Program Files directory
$ (Personaldir)-user directory
$ (Workingdir)-current working directory
$ (Appdir)-flashdevelop program directory
$ (Basedir)-flashdevelop files
$ (Userappdir)-flashdevelop user directory
Project related:
$ (Toolsdir)-user tools directory
$ (Outputdir)-output file direcory
$ (Outputname)-output file name
$ (Projectname)-project name
$ (Projectdir)-project directory
$ (Projectpath)-project file path
Hopefully, this has been enough information to get you started on making and editing your own temm templates. If you still have questions, I "D highly recommend the flashdevelop forums
$ (Projectname) becomes @ projectname
Save the file.Now, when you add a new file to your project, "Singleton" shocould be an option.Now, when you add a new file to the project, "single" should be a choice. All of the above Code automatically gets put into the new file, and the special tags "$ (TAG)" are replaced with the appropriate data.The aboveCodeAll the new files are automatically obtained, and the special mark "$" is replaced with the corresponding data.
There are several special tags that can be used within the template.There are several special tags that can be used in the template. I have not used them all, but here is a list that was posted by Philippe on the flashdevelop forums: rnrnSnippets & templates variables:I have never used them, but here is a list, via Philip posted on the full-set Forum: rnrnFragment and template variables:
$ (Entrypoint)-cursor position$ (Entry Point)-cursor position
$ (cslb) (" coding style Line Break ")-When generating code, tells where to insert a linebreak if the "coding style type" option (program setting) is set to "Brace after line ". $ (cslb) ("encoding-style line separator")-Where to tell when code is generated, if the "encoding style type" option ( Program is inserted Set to "support backend ".
General variables: rn $ (seltext)-selected text General variables: seltext $ (seltext)-selected text
$ (curword) -Word at cursor position $ (curword)-cursor position of a word
$ (Clipboard) -clipboard content rn $ (timestamp)-system time $ (Clipboard)-clipboard content $ (timestamp)-system time
$ (curfile)-current file $ (curfile) -current file
$ (curfilename) -current file's name $ (curfilename)-name of the current file
$ (curdir) -current file's directory $ (curdir)-current file's directory
$ (Openfile)-show open ..$ (Openfile)-show open .. File DialogFile Dialog Box
$ (SaveFile)-show save... File Dialog$ (Open File)-Save the displayed file dialog box...
$ (Opendir)-show dialog to select a directory$ (Opendir)-display dialog box, select a directory
$ (Shorttopdir)-user desktop directory$ (Shorttopdir)-user's desktop directory
$ (SystemDir)-Windows System directory$ (SystemDir)-Windows System directory
$ (Programsdir)-Program Files directory$ (Programsdir)-Program Files directory
$ (Personaldir)-user directory$ (Personaldir)-user directory
$ (Workingdir)-current working directory$ (Workingdir)-current working directory
$ (Appdir)-flashdevelop program directory$ (Appdir)-full set of program directories
$ (Basedir)-flashdevelop files$ (Basedir)-complete set of files
$ (Userappdir)-flashdevelop user directory$ (Userappdir)-full set of User Directories
Project related: Project related:
$ (Toolsdir)-user tools directory$ (Toolsdir)-user tool directory
$ (Outputdir)-output file direcory$ (Outputdir)-output file direcory
$ (Outputname)-output file name$ (Outputname)-name of the output file
$ (Projectname)-project name$ (Project name)-project name
$ (Projectdir)-project directory$ (Projectdir)-project directory
$ (Projectpath)-project file path$ (Projectpath)-project file path
Hopefully, this has been enough information to get you started on making and editing your own temm templates.Hopefully, this is enough information for you to start making and editing your own custom templates. If you still have questions, I "D highly recommend the flashdevelop forums.If you still have problems, my "D highly recommends the full-set forum.