jens1o / vscode-smarty

Smarty syntax highlight extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=imperez.smarty
GNU General Public License v3.0
14 stars 9 forks source link

Emmet/HTML snippets don't work #22

Closed bugproof closed 4 years ago

bugproof commented 4 years ago

It works fine in PHP files but it doesn't in smarty *.tpl

image

I even have these settings:

"emmet.syntaxProfiles": {
            "tpl": "html"
        },
        // "emmet.includeLanguages": {
        //  "smarty": "html"
        // },
        "emmet.triggerExpansionOnTab": true,

what's the deal?

bugproof commented 4 years ago

ok it seems to work with "emmet.includeLanguages". syntaxProfiles is not needed https://code.visualstudio.com/docs/editor/emmet#_emmet-abbreviations-in-other-file-types

digiage commented 3 years ago

still can't make it work. not sure why

"emmet.includeLanguages": {
    "tpl": "html"
}

image

digiage commented 3 years ago

ok. works with :

      "emmet.includeLanguages": {
          "smarty": "html"
      }
edpol27 commented 2 years ago

tab key doesn't expand abbreviation. It works in html, but not in smarty. ml10 goes to with ctrl+space I see a correct suggestion "emmet.triggerExpansionOnTab": true option is enabled

UPD: "files.associations": { "*.tpl": "smarty", "*.master": "smarty" } this helped