31

I can't find anywhere in VSCode theming docs how to change the colors of the minimap (background, highlight,...), can someone please help me with this?

Thanks.

8 Answers 8

32

this works for me:

"workbench.colorCustomizations": {
   "scrollbarSlider.activeBackground": "#62fa1b",
   "scrollbarSlider.hoverBackground": "#fa2a1b",
   "scrollbarSlider.background": "#c97554",
},

credit

(Keywords for google: VS Code make minimap lighter)

Sign up to request clarification or add additional context in comments.

2 Comments

Brilliant. The default of "minimap.scrollbarSlider": "1% lighter" is such a pain. Adding "VS Code make minimap lighter" for Google juice, to maybe help others save some time.
@SeanO Not sure I understood you correctly, I added your keywords for google in my answer. Feel free to edit/improve my answer.
26

Starting in VS Code 1.43.0, you can change the minimap opacity and background color with the following setting in settings.json:

"workbench.colorCustomizations": {
    "minimap.background" : "#00002299"
}

I reached this by going to File | Preferences | Settings, typing "workbench.colorCustomizations" in the search box, and clicking "Edit in settings.json".

These are hexadecimal numbers and the order of the color channels is RGBA, so this example gives a very dark blue background and (full-size) characters from the editor can be seen behind the minimap.

4 Comments

Needful to say that the alphachannel of the background color affects the whole opacity and thus making even the foreground (text color) transparent, which in turn reduces readability. github.com/microsoft/vscode/issues/92490
btw, great nick
You can also change the color for a specific theme with { "[your_theme]" : {"minimap.background": ...} }
Try #1e1e1e33, it's the exact color of vscode's default theme background. The last two characters control the opacity.
20

Here's how I sync up my customized minimapSlider and scrollbarSlider.

"workbench.colorCustomizations": {
  "scrollbarSlider.background": "#0000001a",
  "minimapSlider.background": "#0000001a",
  "scrollbarSlider.hoverBackground": "#00000028",
  "minimapSlider.hoverBackground": "#00000028",
  "scrollbarSlider.activeBackground": "#00000028",
  "minimapSlider.activeBackground": "#00000028",
},

1 Comment

We also needed "editor.minimap.showSlider": "always". The setting of "minimapSlider.background" is what I needed.
7

I fought this one for a while, turns out it's "editor.background" but you have to restart vscode for it to take effect.

1 Comment

From Review: Hi, this post does not seem to provide a quality answer to the question. Please either edit your answer and improve it, or just post it as a comment.
3

To always show the minimap slider (without having to mouseover) go to File| Preferences| Settings and search (type in): "minimap show slider".

Change the default "mouseover", to "always".

Comments

1
  "editor.minimap.showSlider": "always",
  "workbench.colorCustomizations": {
      "scrollbarSlider.activeBackground": "#62fa1b",
      "scrollbarSlider.hoverBackground": "#fa2a1b",
      "scrollbarSlider.background": "#c97554",
      "minimap.background": "#252525",
  }

Comments

1

I have no clue why the accepted answer is such. If the OP means to ask about the minimap then these are some of what you would want. I'll point out that in my screenshot you see the editorGutter colors on the right, i.e. the drastically different editorGutter.modifiedBackground in red and then the minimapGutter colors show on the left, and to hightlight the difference the minimapGutter.modifiedBackground is shown for the same change in a neon green (and they're not showing aligned because of scroll position).

  "workbench.colorCustomizations": {
    "editorGutter.addedBackground": "#00ff7b",
    "editorGutter.deletedBackground": "#fff000",
    "editorGutter.modifiedBackground": "#ff0000",
    "minimapGutter.addedBackground": "#00ff7b",
    "minimapGutter.deletedBackground": "#770909",
    "minimapGutter.modifiedBackground": "#37ff00",
    ...
  },

minimap in vscode

Comments

0

I think those settings can be overwritten. Go to your VSCode settings and under the workbench.colorCustomizations settings, the ones you're interested in are those starting with scrollbarSlider.*.

Check https://code.visualstudio.com/docs/getstarted/themes for more infos.

Hope it helps

3 Comments

Yeah I already tweaked workbench.colorCustomizations but scrollbarSlider keys don't affect the minimap :(
scrollbarSlider just affects the scrollbar sliders, not the minimap bg unfortunately :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.