Smarty support broke?
3 posts
• Page 1 of 1
Smarty support broke?
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
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
You do not have the required permissions to view the files attached to this post.
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
Re: Smarty support broke?
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.
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.
Michal Brabec │ DEVSENSE s.r.o. │ @gMichalBrabec │ michal.brabec@devsense.com
-
Michal Brabec - Posts: 13
- Joined: September 14th, 2016, 8:55 am
Re: Smarty support broke?
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
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 88 guests