I want to create an UltiSnip code in which is similar to the one used in their Github README.
I understand it involves python interpolation and I am finding it difficult to write my own interpretation. Their documenation gives a good list what UltiSnip can do, yet it still difficult to get what I am trying to do.
I want to automatically generate public methods to get and set instance variables, such as I type in this...
class Foo()
{
int x;
double y;
...
and UltiSnip should add this portion...
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;
}
}