小编Mic*_*hal的帖子

有没有办法在Eclipse(Helios)代码模板中大写变量值的第一个字母

我有一个带变量的代码模板,我想只在某些情况下将这个变量的值大写(只是第一个字母).有没有办法做到这一点?

模板代码如下 - 我想在我的函数名中大写Property Name ...

private $$${PropertyName};
${cursor}    
public function get${PropertyName}() 
{
  return $$this->${PropertyName};
}

public function set${PropertyName}($$value) 
{
  $$this->${PropertyName} = $$value;
}
Run Code Online (Sandbox Code Playgroud)

请注意:这是一个模板,用于IDE中的代码模板(不是PHP).有关详细信息,请参阅:http://www.ibm.com/developerworks/opensource/tutorials/os-eclipse-code-templates/index.html

eclipse

16
推荐指数
1
解决办法
3932
查看次数

标签 统计

eclipse ×1