tsvetan-ganev / nativescript-vscode-snippets

NativeScript XML snippets for Visual Studio Code.
MIT License
43 stars 7 forks source link

Add html.json for support snippets for HTML files, currently only works in XML files #12

Closed darkyelox closed 6 years ago

darkyelox commented 6 years ago

The snippets in this project are only available for XML files but Nativescript supports HTML extension in their templates.

theamici commented 6 years ago

yes please! It bothers me that I can't get support for NativeScript elements in Angular NativeScript -.-

atmosuwiryo commented 6 years ago

Workaround:

  1. Go to extensions folder here:

Windows: %USERPROFILE%.vscode\extensions macOS/Linux: $HOME/.vscode/extensions

  1. Go to this extensions folder:

tsvetan-ganev.nativescript-xml-snippets-1.0.6

  1. Open package.json and change this line:

"language": "xml",

to

"language": "html",

That's it.

tsvetan-ganev commented 6 years ago

Sorry for the late reply. HTML is now added to the list of supported languages.