Spring

vsCode html.json 간편한 설정

양빵빵 2022. 7. 6. 17:19

 

 

 

{
    // Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
    // same ids are connected.
    // Example:
    // "Print to console": {
    //    "prefix": "log",
    //    "body": [
    //       "console.log('$1');",
    //       "$2"
    //    ],
    //    "description": "Log output to console"
    // }
 
    "korea html form" : {
       "scope": "html",
       "prefix": "!!",
       "body": [
          "<!DOCTYPE html>",
          "<html lang=\"ko\">",
          "<head>",
             "<meta charset=\"UTF-8\">",
             "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
             "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
             "<!-- RESET CSS -->",
             "https://cdn.jsdelivr.net/npm/reset-css@5.0.1/reset.min.css\">",
 
             "<!-- jQuery cdn -->",
              " ",
 
             "<title>$1</title>",
          "</head>",
          "<body>",
          "$2",
          "</body>",
          "</html>"
       ],
       "description": "html 자동완성 (한글페이지용)"
    },
 
    "korea jsp form" : {
       "scope": "html",
       "prefix": "!jsp",
       "body": [
          "<%@ page contentType=\"text/html; charset=UTF-8\" language=\"java\" %>",
          "<%@ taglib prefix=\"c\" uri=\"http://java.sun.com/jsp/jstl/core\"%>",
          "<!DOCTYPE html>",
          "<html lang=\"ko\">",
          "<head>",
             "<meta charset=\"UTF-8\">",
             "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
             "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
             
 
             "<title>$1</title>",
          "</head>",
          "<body>",
          "$2",
          "</body>",
          "</html>"
       ],
       "description": "jsp 자동완성 (한글페이지용)"
    }
 }