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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -