javascript - how to insert and if defined for a variable in webstorm -


Looks like I have a code

  var val = event.deltaX;   

How do I put a code which will replace

  if (event.deltaX) in the above {x = event.deltaX; }    

You can try to use live templates for this - around Look at the side.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -