Giter VIP home page Giter VIP logo

Comments (1)

Zaczero avatar Zaczero commented on June 9, 2024

<img> is an HTML void tag which means that it doesn't require a slash at the end. And because they are optional I think we should keep it simple as it is (without the slash). On the bootstrap documentation they don't use those end slashes neither.

I do understand that it cause some problems in JSX as you said but this is just a little odd to me that some HTML supporting language cannot handle img tags without end slash properly. Maybe try changing the config of your project or something like that?

If we add those end slashes there is a same chance that another guy will come and post a compatibility issue because he needs snippets without the img slashes at the end. There is no perfect solution for that.

I suggest you two solutions (first one is easier):

  • Copy snippets file from here, modify them for your own needs and then paste them to VS Code > F1 > Preferences: Configure User Snippets > LANGUAGE.json and save.
  • As a second solution I suggest you to fork this repository, make the changes, compile it and install in Visual Studio Code.

from bootstrap-v4-snippets.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.