Question

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;
}
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top