Comments (4)
I spent some time during the afternoon looking into what would be required for this and have hit a wall. It seems what needs to happen is simply editing files.associations
like so:
"files.associations": {
"*.hbs": "html"
}
but I can't figure out how to do that from an extension. I tried a couple things, including editing the package.json
to look like:
{
"name": "test-snippets",
"displayName": "TEST Snippets",
"description": "Full HTML tags including HTML5 Snippets",
"version": "0.0.18",
"publisher": "abusaidm",
"icon": "images/icon.png",
"engines": {
"vscode": "^0.10.1"
},
"extensionDependencies": [
"html"
],
"galleryBanner": {
"color": "#1E81C1",
"theme": "light"
},
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"language": "html",
"path": "./snippets/snippets.json"
},
{
"language": "php",
"path": "./snippets/snippets.json"
},
{
"language": "javascript",
"path": "./snippets/snippets.json"
},
{
"language": "javascriptreact",
"path": "./snippets/snippets.json"
}
],
"languages": [{
"id": "html",
"extensions": [ ".hbs" ],
"aliases": [ "HTML", "html" ]
}]
}
}
No good. Someone smarter than me?
from html-snippets.
Helpful links:
https://code.visualstudio.com/docs/languages/overview
https://code.visualstudio.com/docs/customization/colorizer
https://code.visualstudio.com/docs/extensionAPI/extension-points#_contributeslanguages
from html-snippets.
Adding the file association is a good enough solution for me! Thanks!
"files.associations": {
"*.hbs": "html"
}
from html-snippets.
hello,
I am closing this now, as the solution demonstrated resolves this issue.
Thank you all.
from html-snippets.
Related Issues (20)
- CMD-K F Closes the Editor And Does Not Format HOT 1
- Support for html entities HOT 1
- Wrong description for track HOT 1
- Missing tag HOT 1
- Change everything to tag HOT 1
- The extension blocks Emmet from working HOT 1
- Autocompleting should not work inside tags
- Html Snippets not working in Laravel Blade PHP File HOT 10
- How can I use the snippets with an engine like pug?
- What extensions does it conflict with? HOT 4
- Snippets are not working
- Not working: Ubuntu VSCode
- Snippets not working after installing django plugin HOT 1
- Not Smooth Auto Complete Closing Tag
- No doc in json file
- How to add new code snippets?
- How make it work with any file extension ?
- CAN YOU PLEASE REPLACE EXISTING SNIPPET WITH THIS ONE...???
- Currently not working? HOT 1
- HTML SNIPPETS IS NOT WORKING
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-snippets.