Domanda

suppose I have a code

var val = event.deltaX;

how can I auto insert a code which will transform the above into

if(event.deltaX)
{
x = event.deltaX;
}
È stato utile?

Soluzione

You can try using live templates for this - see surround live templates.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top