๐ŸŒˆVS code ๋ณ€์ˆ˜ ์ƒ‰์ƒ ๋ณ€๊ฒฝํ•˜๋Š”๋ฒ•

5573 ๋‹จ์–ด vscodevscode

์–ผ๋งˆ์ „์— ๋งฅ๊ณผ ๋ฐ์Šคํฌํƒ‘์„ ํฌ๋งท์„ ํ•ด์„œ VScode ์™€ ๊ธฐ์กด์— ์“ฐ๋˜ ์ต์Šคํ…์…˜๋“ค์„ ์„ค์น˜ํ•˜์˜€๋Š”๋ฐ ๋ณ€์ˆ˜์™€ ์ฃผ์„์˜ ์ƒ‰๊น”์ด ๋งˆ์Œ์— ์•ˆ ๋“ค์—ˆ๋‹ค.
๋ณ€์ˆ˜ ๋งˆ๋‹ค ์ƒ‰์ƒ ์ง€์ •์ด ์•ˆ๋˜์–ด์žˆ์–ด์„œ ๊ฐ€๋…์„ฑ๋„ ์•ˆ์ข‹๊ณ  ๋ฌด์—‡๋ณด๋‹ค ์ฝ”๋”ฉ ํ•  ๋ง›์ด ์•ˆ๋‚ฌ๊ธฐ ๋•Œ๋ฌธ์— ๊ผญ ๋ฐ”๊ฟ”์•ผ ํ–ˆ๋‹ค.

1. ์„ค์ • > Color customization > Edit in setting.json

์„ค์ •(window:ctrl+, mac:command,) ์—์„œ color customization์„ ๊ฒ€์ƒ‰ํ•˜๋ฉด ์„ธ๊ฐœ๊ฐ€ ๋œฐํ…๋ฐ ์•„๋ฌด๊ฑฐ๋‚˜ Edit in setting.json ์„ ํด๋ฆญํ•˜๋ฉด ์œ„์˜ ํ™”๋ฉด๊ณผ ๊ฐ™์€ json ํŒŒ์ผ์ด ๋œฐ๊ฒƒ์ด๋‹ค.

2. ์†์„ฑ ์ ์šฉ

"editor.tokenColorCustomizations": {
    "textMateRules": [
            {
                "scope": "์Šค์ฝ”ํ”„ ๋ฒ”์œ„",
                "settings": {
                    "foreground": "์ƒ‰์ƒ",
                    "fontStyle" : "๊ธ€์”จ์ฒด"
                }
            }
        ],
}

๋ณ€์ˆ˜์˜ ์ƒ‰์ƒ๊ณผ ๊ธ€์”จ์ฒด๋ฅผ ๋ฐ”๊พธ๊ธฐ ์œ„ํ•ด์„œ๋Š” editor.tokenColorCustomizations์˜ ์†์„ฑ์„ ์ •์˜ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค.
์œ„ ์ฝ”๋“œ์—์„œ scope ๋ถ€๋ถ„์— ์›ํ•˜๋Š” ๋ณ€์ˆ˜์˜ scope ๋ฒ”์œ„, foreground ์— ์›ํ•˜๋Š” ์ƒ‰์ƒ(ex. #ffffff)๊ณผ ๊ธ€์”จ์ฒด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ json ํŒŒ์ผ์— ๋„ฃ์œผ๋ฉด ๋œ๋‹ค.

3. scope ๋ฒ”์œ„ ์ฐพ๊ธฐ

์ฝ”๋“œ ์ž‘์„ฑ ํ™”๋ฉด์—์„œ ctrl shift p (mac: command shift p)๋ฅผ ๋ˆ„๋ฅด๋ฉด ๋ช…๋ น์–ด ์ž…๋ ฅ ์ฐฝ์ด ๋œจ๋Š”๋ฐ inspect editor tokens and scopes ๊ฒ€์ƒ‰ํ›„ ํด๋ฆญํ•œ๋‹ค.
์›ํ•˜๋Š” ๋ณ€์ˆ˜๋‚˜ ํ•จ์ˆ˜ ์ฃผ์„๋ถ€๋ถ„์„ ํด๋ฆญํ•˜๋ฉด ์œ„์™€ ๊ฐ™์€ ์ฐฝ์„ ๋ณผ ์ˆ˜ ์žˆ๋Š”๋ฐ textmate scopes์— ํ•ด๋‹นํ•˜๋Š” ๋ถ€๋ถ„์ด scope ๋ฒ”์œ„ ์ด๋‹ค. ์ € ๋ถ€๋ถ„์ด ์—†๊ฑฐ๋‚˜ ๋ญ”๊ฐ€ ์ด์ƒํ•œ ๊ฒฝ์šฐ๋„ ๋งŽ์•˜๋Š”๋ฐ ๊ทธ๋Ÿด๋• foreground ๋ถ€๋ถ„์„ ์ ์œผ๋ฉด ๋๋‹ค.

๋งˆ์น˜๋ฉฐ

์ „๊ณผ ํ›„๋ฅผ ๋น„๊ต ํ–ˆ์„๋•Œ ์นœ๊ตฌ๋“ค์€ ๋ˆˆ ์•„ํ”„๋‹ค๋ฉฐ ๊ธฐ์กด ์„ค์ •์„ ๊ทธ๋Œ€๋กœ ์“ด๋‹ค๊ณ  ํ•˜๋Š”๋ฐ ๋ณ€๊ฒฝ ํ›„์˜ ๋ชจ์Šต์ด ๋” ๊ฐ€๋…์„ฑ ์žˆ๊ณ  ์ฝ”๋”ฉํ•  ๋ง› ๋‚œ๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋Š” ์‚ฌ๋žŒ๋“ค์ด ๋ถ„๋ช… ์žˆ์„๊ฑฐ๋ผ๊ณ  ์ƒ๊ฐํ•œ๋‹ค.
๋‚œ ๋งŒ์กฑ ๐Ÿ‘ ๋‹ค์Œ๋ฒˆ์—” iTerm ์ปค์Šคํ„ฐ๋งˆ์ด์ง• ๊ด€๋ จ ๊ธ€๋„ ์˜ฌ๋ ค๋ด์•ผ๊ฒ ๋‹ค.

์˜ˆ์‹œ

"editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": ["variable.other.constant", "variable.parameter", "comment"],
        "settings": {
          "fontStyle": ""
        }
      },
      {
        "scope": ["variable.parameter"],
        "settings": {
          "foreground": "#F78C6C"
        }
      },
      {
        "scope": ["variable.other.constant"],
        "settings": {
          "foreground": "#F07178"
        }
      }
    ],
    "comments": "#16bda7"
  }

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ