【发布时间】:2015-11-10 04:33:35
【问题描述】:
我想创建一个与Github README 中使用的代码相似的 UltiSnip 代码。
我知道它涉及 python 插值,我发现很难编写自己的解释。他们的documenation 很好地列出了 UltiSnip 可以做什么,但仍然很难得到我想要做的事情。
我想自动生成公共方法来获取和设置实例变量,比如我输入this...
class Foo()
{
int x;
double y;
...
UltiSnip 应该添加这部分...
public void setX(int _x)
{
this.x = _x;
}
public int getX()
{
return this.x;
}
public void setY(double _y)
{
this.y = _y;
}
public double getY()
{
return this.y;
}
}
【问题讨论】:
标签: java python vim getter-setter ultisnips