0

How could I easly generate next code in Visual Studio Community 2017 in an ASP.NET MVC project?

<h1 id="welcome"></h1>
<div class="row">
    <section class="col-md-4">
        <h2><h2>
        <p></p>
    </section>
    <section class="col-md-4">
        <h2><h2>
        <p></p>
    </section>
    <section class="col-md-4">
        <h2><h2>
        <p></p>
    </section>
</div>

using next snippet

h1#welcome+div.row>(section.col-md-4>(h2+p))*3

Like on this image

enter image description here

This must work inside a .cshtml (HTML with razor code) and .html file

1 Answer 1

2
h1#welcome+div.row>(section.col-md-4>(h2+p))*3

Looks like you are doing Zen Coding of HTML. VS needs an extension for that to work.

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ZenCoding

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.