VSCode Snippet

๋“ฑ๋ก

  "Print to console": {
    "scope": "javascript,typescript",
    "prefix": "log",
    "body": [
      "console.log('$1');",
      "$2"
    ],
    "description": "Log output to console"
  }
์—ฌ๊ธฐ์— ์ „์—ญ ์Šค๋‹ˆํŽซ์„ ๋ฐฐ์น˜ํ•ฉ๋‹ˆ๋‹ค. ๊ฐ ์Šค๋‹ˆํŽซ์€ ์Šค๋‹ˆํŽซ ์ด๋ฆ„์œผ๋กœ ์ •์˜๋˜๋ฉฐ
scope(๋ฒ”์œ„), prefix(์ ‘๋‘์‚ฌ), body(๋ณธ๋ฌธ) ๋ฐ description(์„ค๋ช…)์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
scope ํ•„๋“œ์—์„œ ์Šค๋‹ˆํŽซ์„ ์ ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์–ธ์–ด์˜ ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„๋œ ID๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
scope๋ฅผ ๋น„์›Œ๋‘๊ฑฐ๋‚˜ ์ƒ๋žตํ•˜๋ฉด ์Šค๋‹ˆํŽซ์ด ๋ชจ๋“  ์–ธ์–ด์— ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.
prefix๋Š” ์Šค๋‹ˆํŽซ์„ ํŠธ๋ฆฌ๊ฑฐํ•˜๋Š”๋ฐ ์‚ฌ์šฉ๋˜๋ฉฐ ๋ณธ๋ฌธ์ด ํ™•์žฅ๋˜๊ณ  ์‚ฝ์ž…๋ฉ๋‹ˆ๋‹ค.
๊ฐ€๋Šฅํ•œ ๋ณ€์ˆ˜๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
$1, $2 ํƒญ ์ •์ง€, $0 ์ตœ์ข… ์ปค์„œ ์œ„์น˜, ${1:label}, ${2:another} ์ž๋ฆฌ ํ‘œ์‹œ์ž.
๋™์ผํ•œ ID๋ฅผ ๊ฐ€์ง„ ์ž๋ฆฌ ํ‘œ์‹œ์ž๊ฐ€ ์—ฐ๊ฒฐ๋ฉ๋‹ˆ๋‹ค.
What Else?
inflearn react api server -50% ํ• ์ธ์ฟ ํฐ: 15108-f2af1e086101 buy me a coffee