@WebStormIDE Hi - Is there any option in webstorm for "check if not null" for a variable ? which basically adds `if (a!=null / undefined) {...}` , like in R# ?
There's no such intention right now, but you can use the postfix completion "notnull" for that: <var name>.notnull + Tab. You can also create a custom postfix completion template with a shorter abbreviation and different check.
-
-
That wouldn't be the same imho .... R# knew where to put the `if`. ( say I have many usages , nested usages , and I ctrl+enter in the inner usage, R# - knew to put the check at the first top usage)
-
We've created a feature request for that: https://youtrack.jetbrains.com/issue/WEB-34599 But right now we can't provide any ETA for it...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.