The Boilerplate code is not completing automatically in VScode

11k Views Asked by At

Earlier, the boilerplate code got automatically completed after writing <DOCTYPE html>, but now it's not working and I've to write the boiler plate code myself every-time. I've tried:

  1. Using HTML snippets package.
  2. Uninstalling packages.
  3. Re-installing Vscode. Nothing seems to work.

Now Earlier

Any, help is deeply appreciated.

I am all new here, so if any sort of mistake is done by me in asking or specifying the question, I apologize.

4

There are 4 best solutions below

1
developing brandon On BEST ANSWER

I had this problem too. You need to change your language mode to html first. Then using ! will work. The location of language mode is in the bottom right corner of vs code

I ended up installing HTML5 Boilerplate extension by sidthesloth. The boilerplate was a bit more complete.

0
Jay On

I had the same problem. I found that the suggestions were turned off. Try Ctrl+Space it will turn on suggestions.

0
Aakash Yadav On

Its very simple. Go to setting of visual studio and search (emmet abbreviation). scroll down to bottom and then you will find a option/setting named (Emmet: Trigger Expansion On Tab). Turn it on. Now open blank file and type ! and then press tab your boilerplate will ready. Its 100% working.enter image description here

0
patilganesh1010 On

I am facing the same issue but not solved you can the steps to solve this issue

  1. Open vs code
  2. Click settings > Command palette
  3. Search for user settings
  4. Go to emmet
  5. at the bottom click on the checkbox the trigger expansion tab
  6. done now you can use it!