sidthesloth92/vsc_html5_boilerplate

html does nothing after install and reload

mccreeker opened this issue ยท 16 comments

I just followed the installation instructions here: https://marketplace.visualstudio.com/items?itemName=sidthesloth.html5-boilerplate

I click the green Reload button, VS Code reloads, I open a new file, type html, and nothing happens. I try html5 and hit Ctrl+Space, says no suggestions. I copy-paste html5-boilerplate and nothing happens. I paste 'html5-boilerplate' and nothing happens.

How is this thing supposed to work?

I have the same problem. It does nothing.

Weird that the instruction tells you to type "html-boilerplate", which really does nothing.

But It does when you type htmlboiler and then press tab (I only tried that because that's how I used to do it in Sublime Text with another extension)

I didn't work when I typed htmlboiler either....

@mccreeker @isaacalves @francorona Can you provide more information? OS Version, VS Code version, stuff like that? I just installed a new version of VS Code, installed the extension from the marketplace and it worked just fine. Do refer the updated GIF from the Readme. Hope this helps. And let me know if the issue persists.

I actually switched to using Atom instead of VS Code. Thanks though. My OS is Windows 10 and was the most recent version of VS Code.

jep commented

I noticed I had this issue initially. It turned out that the file you're working on must be saved as a .html file, instead of the default Untitled-1, before the html shows the boilerplate selection.

@jep Yes, the file needs to be saved with an extension for the snippet to show. Thanks for sharing the info.

didn't work for me. my file is "index.html" and nothing comes up when I type html...

AVDW commented

I had the same problem but found that vscode set the default language for html to Nunjucks. Changing the language back to html in the bottom corner made this extension work again.

image

My OS is Mac Darwin osx.10.12-x64 and VS code version is 1.30.1.

I found similar situation like @AVDW :
image
And the extension will work normal when manual change to HTML .
It is weird why the VS code treat my new html file as Django HTML in C# project folder...

I had the same issue as well and only was able to get it to work after applying all of the following:

For those still unable to get it to work; make sure that you type "html" in the file editor; not in the command palette (this initially tripped me up ;))

So to change Language Mode, there's a keyboard shortcut. Have a look here. For Mac, it's Cmd+K then M. It will open the command palette and then you select HTML. vice versa to switch back to your other language mode.

I had the same problem but found that vscode set the default language for html to Nunjucks. Changing the language back to html in the bottom corner made this extension work again.

image

Yes. This is the working solution for me.

initially, I had the same problem I tried disabling Django extension, it worked fine for me then for some reason these two extensions don't work together

Same issue, worked after swapping from "Django HTML" to "HTML"

I had the same problem but found that vscode set the default language for html to Nunjucks. Changing the language back to html in the bottom corner made this extension work again.

image

Wow this helped thanks for sharing man great work