by Mofi » Mon May 21, 2012 12:48 pm
Default smart templates file for JavaScript contains also a template named just if and it is working fine. So the length of the template name should not be the problem.
If I have a *.js file open or an HTML file and I'm within a JavaScript section, type i and f and wait 1 second (default pause time value for auto-suggest smart template when typing), the language template if is suggested. I'm using UE v18.00.0.1034. 10 ms for pause time is definitely too small.
But I think I found out why auto-suggest template feature is not working for you for template if.
I have NOT enabled configuration setting Show auto-complete dialog automatically at Advanced - Configuration - Editor - Auto-complete. But if this setting is enabled and the setting below has value 3, there is no auto-suggest as long as not at least 3 characters are typed. Setting the value to 2 results in displaying the auto-complete dialog with smart template if for being inserted with TAB key.