Hello,
It seams there is a pretty good Smrty support for Visual Studio (https://docs.devsense.com/en/vs/editor/smarty). Why it is not ported to VSCode? Is it possible to make VSCode extension work with Smarty as Visual Studio extension?

    Andy Hi Andy,

    Thank you for the question.

    Basically, we thought there was already Smarty support in VSCode. Is there anything specific we could make better? I'm totally open to implementing it.

      5 days later

      There is no native support in VCS as fare as I know.
      There is an extension (https://marketplace.visualstudio.com/items?itemName=aswinkumar863.smarty-template-support) that supports syntax highlighting and code formatting but it lacks the key-feature (as of my perspective) which is intellisense.

      After writing Smarty->assign ('foo', new Foo()); in php file I would like to see all public methods and fields of Foo when I wrote {$foo->} in .tpl file. Also usages of that methods in *. tpl should be visible in references report in the class definition.

      "IntelliSense Completion", "Tooltips", "Navigation", "Construct Completion" and "Syntax Validation" are other things described in Your docs for Visual Studio and not available in VSC by any means which I am aware of.

      23 days later

      Hi,
      Are there any chances that intellisense will be implemented in VSC?

        Andy We haven't planned it yet. But we're looking into it. I'm personally interested in implementing Smarty IntelliSense for VSC. Anyways can't give you any ETA.

          Write a Reply...