일상에서
비주얼 스튜디오 코드 - 스니펫 등록
텍사스양
2020. 2. 12. 13:20
{ // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope // is left empty or omitted, the snippet gets applied to all languages. 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: "Classic Asp Response.Write": { "prefix": [ "write" //실제 사용할 단축어 등록, 복수개도 가능 ], "body": [ //실제 내용 "response.write \"$1 =\" &$2& \"
\"", "'response.end", "" ], "description": "해당 스니펫에 대한 설명 작성" } }
작성하면서 가장 궁금했던 건,
내용 안에 들어갈 큰 따옴표(") 표시인데,
\"\"
역슬래시로 시작해서 위와 같이 표현..
수정할 스니펫 위치는 아래과 같다..
기타 자세한 설명과 도움은 아래 블로그에서 받음..