24

I have enabled the MiniMap in Visual Studio Code (VSCODE) with the following code: "editor.minimap.enabled": true

But can I make it bigger? It's so small at the right.

UNTITLED.PNG
  • 471
  • 1
  • 5
  • 12

5 Answers5

41

thanks Alex there is a new setting from VSCode release 1.40.0 onwards:

"editor.minimap.scale": 2

before VSCode 1.40.0: there is no zoom-level for the minimap.

But i think the following settings is useful as it renders it schematically which looks much nicer than with true! Maybe this improves it! ;-)

"editor.minimap.renderCharacters": false
Hilmar Demant
  • 515
  • 5
  • 20
  • It really looks better. The code blocks seem to be cleaner and pop out clearly instead of looking like squiggles! – abhijit Oct 25 '17 at 23:16
  • 2
    From VS Code [v1.40.0](https://code.visualstudio.com/updates/v1_40#_minimap-scaling-and-improved-font-rendering) a new configuration is introduced. Use `"editor.minimap.scale": 2,` – kuttumiah Nov 11 '19 at 21:37
18

In the settings, you can set the width with

// Limit the width of the minimap to render at most a certain number of columns
"editor.minimap.maxColumn": 120
Eric Bole-Feysot
  • 13,949
  • 7
  • 47
  • 53
5

From vscode release 1.40.0

"editor.minimap.scale": 2,
Alex
  • 59,571
  • 22
  • 137
  • 126
5

There are two new minimap settings which are in v1.43:

Editor › Minimap: Size

values: proportional, fit and fill

From https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_43.md#minimap-size:

When set to proportional (the default), each line gets a certain amount of vertical space in the minimap, depending on editor.minimap.scale. For example, on a high-DPI monitor, with a configured scale of 1 (the default), each line gets 4 px in the minimap. So for a file of 100 lines, the height of the lines rendered in the minimap is 400 px, and for a file of 1000 lines, it is 4000 px. That means that for large files, the minimap will also scroll, as the current file is scrolled.

When set to fit, the height of the minimap is limited to never be larger than the editor height. So if a file has many lines, they will be sampled and only a subset will be rendered in the minimap, such that there is no need for the minimap to scroll.

When set to fill, the height of the minimap is always the editor height. For large files, this is also achieved by sampling lines, but for small files, this is achieved by reserving more vertical space for each line (stretching the lines).

Here the size is changed from proportional to fit, and then in a smaller file, from fit to fill:

minimap fill and fit

Mark
  • 143,421
  • 24
  • 428
  • 436
  • Thank you, this is exactly what I wanted. For me, the minimap was throwing me off because it didn't line up with the scroll bar. "fit" solves this problem <3 – NightCabbage Mar 07 '22 at 22:38
  • Oh and further to this, I've found that I like "fill" even better! No scrolling on the minimap ever. Lines up perfectly with the scroll bar. Great when stuff is highlighted. – NightCabbage Mar 09 '22 at 02:12
1

Not yet, but the pull request is on its way https://github.com/microsoft/vscode/pull/82265

crabvk
  • 130
  • 1
  • 7