VSCode not auto completing HTML

后端 未结 13 1990
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 19:32

I\'m having trouble with my new installed Visual Studio Code on Windows 7. On Mac the editor automatically closes html tags but on my Win7 not. I assume there must be some o

13条回答
  •  星月不相逢
    2020-12-07 20:34

    Type the tag name (without starting <) then press Tab

    for example type div then press tab and VS will convert it to

    Or type the opening tag then press Tab twice

    for example :

    1. type
    2. press Tab
    3. press Tab

    it will add the closing tag

提交回复
热议问题