Vue는 신속한 개발을 완료하기 위해 코드 조각을 추출하고 생성합니다.

파일 => 환경 설정 => 사용자 코드 스 니펫 => 새 전역 코드 스 니펫 / 또는 폴더 코드 스 니펫 : vue-html.code-snippets를 생성
한 후 나타나는 부분을 다음 스 니펫으로 바꿉니다.

{
	"vue htm": {
		"scope": "html",
		"prefix": "vuehtml",
		"body": [
			"<!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>",
			"    <div id=\"app\">",
			"",
			"    </div>",
			"    <script src=\"vue.min.js\"></script>",
			"    <script>",
			"        new Vue({",
			"            el: '#app',",
			"            data: {",
			"                $1",
			"            }",
			"        })",
			"    </script>",
			"</body>",
			"",
			"</html>",
		],
		"description": "my vue template in html"
	}
}

다음에 vue htm을 직접 입력하여 다음 코드의 빠른 생성을 완료 할 수 있습니다.

<!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>
    <div id="app">

    </div>
    <script src="vue.min.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
             
            }
        })
    </script>
</body>

</html>

추천

출처blog.csdn.net/he1234555/article/details/114988399