문제

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