Ravi Ram
Ravi Ram

Reputation: 24488

VS Code Emmet with classic asp

I am using Visual Studio Code with Classic ASP project. In Sublime Text, Emmet was working. I am having trouble trying to get Emmet working in VS Code.

Does anyone know the settings to get VS Code + Classic ASP pages working with Emmet?

Upvotes: 0

Views: 1517

Answers (3)

MikeVirtual
MikeVirtual

Reputation: 21

Best solution is similar to @ravi-ram above, but set:

"files.associations": {
    "*.asp": "asp"
},
"emmet.includeLanguages": {
    "asp": "html"
}

This way you get emmet completion for both ASP and HTML within .asp files

Upvotes: 2

Ravi Ram
Ravi Ram

Reputation: 24488

There is a great extension at : https://www.itnota.com/making-visual-studio-code-colorize-classic-asp-code/

To add Classic ASP pages (*.asp) to use Emmet, you need to add the following setting changes. Settings are accessed via File > Preferences > Settings menu item. (Cntl + comma)

 "files.associations": {
        "*.asp": "html"
    },

OR

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

Using emmet.includeLanguages did not work as Classic ASP is not a recognized Included Language.

enter image description here

Upvotes: 1

Madara's Ghost
Madara's Ghost

Reputation: 175098

According to Emmet in VSCode - Emmet abbreviations in other file types

To enable the Emmet abbreviation expansion in file types where it is not available by default, use the emmet.includeLanguages setting. Make sure to use language identifiers for both sides of the mapping.

For example:

"emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "vue-html": "html",
    "plaintext": "jade"
}

Upvotes: 1

Related Questions