2

I am looking to make a Haxe file template for FlashDevelop (or find an existing one) so that I can right click > Add > New Haxe File...

How do I do this?

Edit: Was able to get a file, however the package name does not load (i.e. start of the file may be:

package scenes;

However, all I am getting is:

package ;

This is the *.fdt file I am using:

package $(Package);

/**
$(CBI)* ...
$(CBI)* @author $(DefaultUser)
$(CBI)*/
class $(FileName) $(CSLB){

    public function new() $(CSLB){
        $(EntryPoint)
    }
}

Edit2: Had to change:

package $(Package);

to

package $(TypPkg);

then right click the folder that is the package and click 'Add Source Path'.

Thanks to @Philippe for pointing me on the right path and giving the answer to the bulk of the question.

4

1 回答 1

1

您可以在 FD 模板目录 ( Tools > User Config Files...)中添加新的文件模板

  • /Templates/*:所有语言之间共享的模板
  • /Templates/ProjectFiles/{lang}/*: 特定项目语言的模板

http://www.flashdevelop.org/wikidocs/index.php?title=配置

于 2013-07-29T07:38:29.110 回答