ํ˜‘์—…

[VSCode] VSCode ์ปค์Šคํ…€ํ•˜๊ธฐ

hyeyeonismm 2024. 9. 2. 15:38
VSCode ํ…Œ๋งˆ๊ฐ€ ์งˆ๋ ค์„œ ์ง์ ‘ ์ปค์Šคํ…€ํ•ด ๋ฐ”๊ฟ”๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.

 

setting.json ๋ณ€๊ฒฝ

vsc์— ์ ‘์†ํ•ด์„œ [Shift + Ctrl + P] ํ˜น์€ ๊ฒ€์ƒ‰๋ฐ”์— [>] ๊บฝ์ƒˆ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  setting.json์— ์ ‘์†ํ•œ๋‹ค.

workbench.colorCustomiztions์— ์›ํ•˜๋Š” ์ƒ‰์ƒ์„ ์ž…๋ ฅํ•ด์ฃผ๋ฉด ๋œ๋‹ค.
(์ƒ‰์ƒ ์ถ”์ฒœ์€ ์ฑ—์ง€ํ”ผํ‹ฐํ•œํ…Œ ๋ฐ›์Œ ใ…Žใ…Ž)

 

ํ•˜๋‹ค๋ณด๋‹ˆ ์š•์‹ฌ์ด ์ƒ๊ฒจ์„œ ๊ฑฐ์˜ ๋ชจ๋“  ์„ค์ •์„ ๋ฐ”๊ฟ”์คฌ๋‹ค

"workbench.colorCustomizations": {
    "focusBorder": "#4c5669",
    "list.hoverBackground": "#2c323d",
    "titleBar.activeBackground": "#4C566A", //์œ„์ชฝ ํƒ€์ดํ‹€ ๋ฐ”
    "titleBar.inactiveBackground": "#4c566a",
    "editor.background": "#2E3440", // ๋ฐฐ๊ฒฝ์ƒ‰
    "editor.foreground": "#D8DEE9",
    "editor.lineHighlightBackground": "#4C566A", // ์„ ํƒํ•œ ๋ผ์ธ ์ƒ‰
    "editorWhitespace.foreground": "#616E88",
    "editor.selectionBackground": "#5E81AC", // ๋“œ๋ž˜๊ทธ ์ƒ‰
    "editorCursor.foreground": "#88C0D0", // ์ปค์„œ ์ƒ‰
    "activityBar.background": "#4C566A", // ์™ผ์ชฝ ๋ฉ”๋‰ด๋ฐ”
    "activityBar.border": "#4C566A",
    "activityBar.foreground": "#D8DEE9",
    "activityBar.activeBorder": "#D8DEE9",
    "activityBar.inactiveForeground": "#979ba3",
    "activityBarBadge.background": "#34699A",
    "menu.background": "#242933",
    "menu.separatorBackground": "#242933",
    "menu.border": "#242933",
    "button.background": "#4c5669",
    "button.border": "#4c5669",
    "button.hoverBackground": "#444D5E",
    "titleBar.border": "#4C566A",
    "statusBar.background": "#434C5E", // ํ•˜๋‹จ ์ƒํƒœ๋ฐ”
    "statusBar.border": "#434C5E",
    "tab.activeBackground": "#3B4252", //focus ๋œ ํƒญ
    "tab.activeBorder": "#3B4252",
    "tab.border": "#2c323d",
    "tab.activeBorderTop": "#EBCB8B",
    "tab.hoverBackground": "#4e5463",
    "tab.inactiveBackground": "#3B4252", //๋น„ํ™œ์„ฑํ™” ํƒญ ๋ฐฐ๊ฒฝ์ƒ‰ 
    "editorGroupHeader.tabsBorder": "#3B4252", //ํƒญ ์•„๋ž˜์ชฝ ํ…Œ๋‘๋ฆฌ ์ƒ‰
    "editorGroupHeader.border": "#2E3440",
    "input.background": "#2E3440",
    "input.border": "#2E3440",
    "sideBar.background": "#3B4252", // ํŠธ๋ฆฌ ๋ฐฐ๊ฒฝ์ƒ‰
    "sideBar.border": "#3B4252",
    "sideBarSectionHeader.background": "#2c323d", // ํŠธ๋ฆฌ ์ตœ์ƒ๋‹จ ๋ฐฐ๊ฒฝ์ƒ‰
    "editorGroupHeader.tabsBackground": "#3B4252",
    "terminal.background": "#2E3440", //#2C323D
    "panel.background": "#4C566A",
    "panel.border": "#4C566A",
    "panelTitle.activeBorder": "#EBCB8B",
    "panelTitle.activeForeground": "#EBCB8B",
    "panelTitle.inactiveForeground": "#D8DEE9",
    "badge.background": "#5E81AC",
  },

 

์œ„ ์„ค์ •์— ๋งž์ถฐ ํ…์ŠคํŠธ ์„ค์ •์„ ๋ฐ”๊พธ๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ๋‹ค.
์ผ๋‹จ ๊ฐ€์žฅ ๋งŽ์ด ์“ฐ๋Š” yaml๊ณผ python๋งŒ ์„ค์ •ํ•ด์ฃผ์—ˆ๋‹ค.
๊ทผ๋ฐ vsc ๋‚ด์—์„œ remote ssh๋ฅผ ์“ฐ๋ฉด yaml์€ ์•ˆ๊ทธ๋Ÿฌ๋Š”๋ฐ ํŒŒ์ด์ฌ์€ ์„ค์ •์ด ์•ˆ๋จน๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•จ.. ์ถ”ํ›„ ์ฐพ์•„๋ด์•ผ๊ฒ ์Œ

 

๋จผ์ € ๋™์ผํ•˜๊ฒŒ  [Shift + Ctrl + P] ํ˜น์€ ๊ฒ€์ƒ‰๋ฐ”์— [>] ๊บฝ์ƒˆ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  " Developer: Inspect Editor Tokens and Scopes"๋ฅผ ์ž…๋ ฅํ•œ๋‹ค.
ํ•ด๋‹น ์„ค์ •์„ ํด๋ฆญํ•˜๋ฉด Editor ์ฐฝ์— ์•„๋ž˜์™€ ๊ฐ™์€ ์„ค๋ช…์ด ๋œจ๋Š”๋ฐ, ์ด๋ฅผ ํ†ตํ•ด ๋‚ด๊ฐ€ ์„ ํƒํ•œ ํ‚ค์›Œ๋“œ๊ฐ€ ์–ด๋–ค ์ •๋ณด๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”์ง€ ์•Œ ์ˆ˜ ์žˆ๋‹ค.

ํ™•์ธ ํ›„, setting.json์— ์ ‘์†ํ•ด์„œ scope์™€ foreground ์ƒ‰์ƒ์„ ์„ค์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

"editor.tokenColorCustomizations": {
    "comments": "#7D8799",
    "textMateRules": [
      {
        "scope": "variable.parameter",
        "settings": {
          "foreground": "#F78C6C"
        }
      },
      {
        "scope": "variable.other.global",
        "settings": {
          "foreground": "#e54611"
        }
      },
      {
        "scope": "entity.name.tag.yaml",
        "settings": {
          "foreground": "#C792EA"
        }
      },
      {
        "scope": [
          "string.unquoted.plain.out.yaml", // YAML ๊ฐ’ (์ผ๋ฐ˜ ๋ฌธ์ž์—ด)
          "string.quoted.single.yaml", // ์ž‘์€๋”ฐ์˜ดํ‘œ ๊ฐ’
          "string.quoted.double.yaml", // ํฐ๋”ฐ์˜ดํ‘œ ๊ฐ’
        ],
        "settings": {
          "foreground": "#E5C07B"
        }
      },
      {
        "scope": "string.unquoted.block.yaml",
        "settings": {
          "foreground": "#B0D97E"
        }
      },
      {
        "scope": [
          "punctuation.definition.comment.yaml",
          "comment.line.number-sign.yaml",
          "source.yaml",
          "comment punctuation.definition.comment"
        ],
        "settings": {
          "foreground": "#7D8799"
        }
      },
      {
        "scope": "entity.name.type.class.python",
        "settings": {
          "foreground": "#C678DD" // ํด๋ž˜์Šค ์ด๋ฆ„ ์ƒ‰์ƒ
        }
      },
      {
        "scope": "entity.name.function.python",
        "settings": {
          "foreground": "#61AFEF" // ํ•จ์ˆ˜ ์ด๋ฆ„ ์ƒ‰์ƒ
        }
      },
      {
        "scope": "variable.parameter.python",
        "settings": {
          "foreground": "#E5C07B" // ํ•จ์ˆ˜ ๋งค๊ฐœ๋ณ€์ˆ˜ ์ƒ‰์ƒ
        }
      },
      {
        "scope": "constant.language.python",
        "settings": {
          "foreground": "#C678DD" // ์ƒ์ˆ˜ ์ƒ‰์ƒ
        }
      },
      {
        "scope": "string.quoted.single.python",
        "settings": {
          "foreground": "#98C379" // ๋ฌธ์ž์—ด ์ƒ‰์ƒ
        }
      },
      {
        "scope": "source.python",
        "settings": {
          "foreground": "#FFFACD" // Python ์ฝ”๋“œ ๊ธฐ๋ณธ ์ƒ‰์ƒ
        }
      }
    ]
  },

 

์ฐธ๊ณ :
https://code.visualstudio.com/api/references/theme-color#text-colors