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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -