1.修改所有文件的默认编码格式
Window->Preference->General(左)->Workspace(下)->Text file encodeing(右)->other(选择一个编码)->ok
2.修改某一个项目中所有文件的默认编码
选择某一个项目:Project->Properties->Recourse(左)->Text file encodeing(右)->other(选择一个编码)->ok
3.仅仅修改某一个文件的编码
打开一个文件(必须打开,只选定某文件是不可以设置的):Edit->Set encodeing…->other(选择一个编码)->ok
4.设置可以新建.tpl文件
Window->Preference->General(左)->Content Types->Text(右)->HTML->Add…->.tpl->ok->ok(当File associations下面增加了*.tpl)
修改设置之后,右键->new->HTML File 就可以新建.tpl文件了
注:如果设置的时候选择的是PHP Content Type
即:Window->Preference->General(左)->Content Types->Text(右)->HTML->Add…->.tpl->ok->ok(当File associations下面增加了*.tpl)
则修改设置之后,右键->new->PHP File 就可以新建.tpl文件了
5.修改新建php文件时的默认模板
Window->Preference->PHP->Code Style->Code Templates->Code->simple php file->edit->修改模板->ok
注:如果修改新建html文件时的默认模板,只需要选择simple php file下面的html 4.01 frameset就可以了
即:Window->Preference->PHP->Code Style->Code Templates->Code->->edit->修改模板->ok