質問

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;
}
役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top