비주얼 스튜디오 코드 - 스니펫 등록
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": "해당 스니펫에 대한 설명 작성"
}
}
작성하면서 가장 궁금했던 건,
내용 안에 들어갈 큰 따옴표(") 표시인데,
\"\"
역슬래시로 시작해서 위와 같이 표현..
수정할 스니펫 위치는 아래과 같다..
기타 자세한 설명과 도움은 아래 블로그에서 받음..
'일상에서' 카테고리의 다른 글
| 비주얼 스튜디오 코드(VSCode) - 주석 색상 변경 (0) | 2020.04.07 |
|---|---|
| 샤오미 - MIUI V11.0.4.4 업데이트 (0) | 2020.02.14 |
| 알리익스프레스 오류 페이지 (0) | 2019.12.27 |
| 유튜브 시청시 재생버튼 바 없어지지 않는 오류 수정 (0) | 2019.07.10 |
| 10년 신은 캠퍼(camper) 신발 상태 기념.. (0) | 2019.05.06 |