Sublime / vscode quick implementation of generating HTML code

Sublime / vscode quick implementation of generating HTML code

Basic HTML structure

Input !+Enter

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

Generate shortcut keys for div plus class name

Input div.list>div.item_$*6

<div class="list">
    <div class="item_1"></div>
    <div class="item_2"></div>
    <div class="item_3"></div>
    <div class="item_4"></div>
    <div class="item_5"></div>
    <div class="item_6"></div>
</div>

Div with class name

Enter div.wrapper

<div class="wrapper"></div>

div with id

div#wrapper

<div id="wrapper"></div>

property[]

span[title="test"]

<span title="test"></span>

Descendants>

Type div>span>a

<div><span><a href=""></a></span></div>

Brothers+

div+p+span

<div></div>
<p></p>
<span></span>

Superior^

div>span^i

<div><span></span></div>
<i></i>

multiplication*

ul>li*2

<ul>
    <li></li>
    <li></li>
</ul>

text{}

div>span{this is test}

<div><span>this is test</span></div>

Self-increment symbol $

ul>li.list_${list $}*3

<ul>
    <li class="list_1">list 1</li>
    <li class="list_2">list 2</li>
    <li class="list_3">list 3</li>
</ul>

ul>li.item$@3*3 “@3” (indicates counting starts from 3)

<ul>
    <li class="item3">list 1</li>
    <li class="item4">list 2</li>
    <li class="item5">list 3</li>
</ul>

Implicit Conversion

.class

<div class="class"></div>

ul>.item

<ul>
    <li class="item"></li>
</ul>

table>.row>.col

<table>
    <tr class="row">
        <td class="col"></td>
    </tr>
</table>

This is the end of this article about how to quickly generate HTML code in Sublime/VSCode. For more information about how to quickly generate HTML in VSCode, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

<<:  Sample code for displaying a scroll bar after the HTML page is zoomed out

>>:  Implementation of HTML sliding floating ball menu effect

Recommend

Install Linux rhel7.3 operating system on virtual machine (specific steps)

Install virtualization software Before installing...

Introducing ECharts into the Vue project

Table of contents 1. Installation 2. Introduction...

CSS horizontal progress bar and vertical progress bar implementation code

Sometimes it’s nice to see some nice scroll bar e...

Disabled values ​​that cannot be entered cannot be passed to the action layer

If I want to make the form non-input-capable, I se...

Things to note when migrating MySQL to 8.0 (summary)

Password Mode PDO::__construct(): The server requ...

Detailed explanation of adding dotted lines to Vue element tree controls

Table of contents 1. Achieve results 2. Implement...

How to disable ads in the terminal welcome message in Ubuntu Server

If you are using the latest Ubuntu Server version...

Calling the search engine in the page takes Baidu as an example

Today, it suddenly occurred to me that it would be...

CSS3 realizes the website product display effect diagram

This article introduces the effect of website pro...

How to call the interrupted system in Linux

Preface Slow system calls refer to system calls t...

How to generate Vue user interface by dragging and dropping

Table of contents Preface 1. Technical Principle ...

How to use the Clipboard API in JS

Table of contents 1. Document.execCommand() metho...

How to use Docker to build enterprise-level custom images

Preface Before leaving get off work, the author r...

How to configure ssh to log in to Linux using git bash

1. First, generate the public key and private key...

Vue custom v-has instruction to implement button permission judgment

Application Scenario Taking the background manage...