Lasharela
Lasharela

Reputation: 1547

How to change current line color in debugging mode?

I'm trying to change the color of a current line in a debugging mode.

So, I know how to change color in general, but don't know what is the name of the parameter.

for example, to change a selected line we need "editor.lineHighlightBackground"

  "workbench.colorCustomizations": {
    "[Base16 Dark Oceanic Next]": {
      "editor.lineHighlightBackground": "#ff0000",
    }
  }

but, how to change the line color which appears during debugging?

enter image description here

Upvotes: 6

Views: 4812

Answers (3)

starball
starball

Reputation: 50095

See https://code.visualstudio.com/api/references/theme-color#debug-colors. The colour customization points you are looking for are

  • editor.stackFrameHighlightBackground: "Background color of the top stack frame highlight in the editor."
  • editor.focusedStackFrameHighlightBackground: "Background color of the focused stack frame highlight in the editor."

While you're at it, see https://code.visualstudio.com/api/references/theme-color#debug-icons-colors. You might also be interested in colour customization points for the glyph margin decorations / debug icons:

  • debugIcon.breakpointCurrentStackframeForeground: "Icon color for the current breakpoint stack frame."
  • debugIcon.breakpointStackframeForeground: "Icon color for all breakpoint stack frames."

Upvotes: 3

kamikater
kamikater

Reputation: 101

If editor.lineHighlightBackground doesn't do what you want, try editor.stackFrameHighlightBackground.

Upvotes: 1

Osama Abdelrahman
Osama Abdelrahman

Reputation: 169

Write the customization without "[Base16 Dark Oceanic Next]" as :

"workbench.colorCustomizations": {
  "editor.lineHighlightBackground": "#ff0000",
}

Upvotes: 12

Related Questions