Page 1 of 1

Smarty support broke?

PostPosted: November 30th, 2017, 6:09 pm
by DanTalash
Hi,

I noticed that after the latest update (1.25.10447.2015) the Smarty snippets no longer appear in my autocomplete menus.

After looking into it, it seems that the majority of the Smarty features no longer function. The only feature that appears to still work is automatic commenting of HTML elements by appending {* *} around them.

Please take a look at this.


Regards,
Dan Talash

Re: Smarty support broke?

PostPosted: December 1st, 2017, 11:46 am
by Michal Brabec
Hi Dan,
Smarty support should be working in the last update. In your screenshot, you are not inside a Smarty block, therefore; Visual Studio shows HTML suggestions instead of Smarty. First, you have to open Smarty block with {.

Smarty does not offer snippets in autocomplete list, you have to use the TAB key at the right place. For example when you write {for and press TAB, PHP Tools complete Smarty for loop for you.

You have to have Smarty package installed to get the full support, as most of the information comes directly from the files.

Please send us a code snippet, where Smarty is not working, so we can assist you further.

Re: Smarty support broke?

PostPosted: December 12th, 2017, 7:51 pm
by DanTalash
Michal Brabec wrote:Hi Dan,
Smarty support should be working in the last update. In your screenshot, you are not inside a Smarty block, therefore; Visual Studio shows HTML suggestions instead of Smarty. First, you have to open Smarty block with {.

Smarty does not offer snippets in autocomplete list, you have to use the TAB key at the right place. For example when you write {for and press TAB, PHP Tools complete Smarty for loop for you.

You have to have Smarty package installed to get the full support, as most of the information comes directly from the files.

Please send us a code snippet, where Smarty is not working, so we can assist you further.


Hi Michael,

You were right, I was trying to trigger the smarty autocomplete in the wrong way. Thanks for the help!

Regards,
Dan Talash