Issue #124 (Minimap Section Headers)09/04/24
|
PodSnacks delivers AI-generated summaries directly to your inbox. Streamline your podcast experience while saving dozens of hours of listening time. Get started today and never miss an important episode of the top AI, tech, and startup shows again!
Try it Free →
|
|
I normally keep the minimap feature in VS Code turned off by default because I don't use it much. But if you do use the minimap, it's useful to know that earlier this year a new feature was added called
"Minimap Section Headers".
The purpose of the minimap, of course, is to help you quickly navigate to a certain part of a long file. But if it's just a wall of text, it can be harder to find stuff. With Section Headers, you can set visible text headers throughout your code.
As shown in the screenshot above, section headers can be defined and are visible throughout your minimap. You can define minimap section headers using one of two kinds of syntax, commonly known as
"folding markers":
- // #region Example Header
- // MARK: Another Example
The syntax is case sensitive and, as implied, these sections, or regions, also become code folding points in your file.
As with many VS Code features, you can customize the look of the minimap section headers. Look for "Section Headers" in your settings and you'll get four different options. Two of the settings allow you to change the font size and letter spacing of the section headers:
And the other two allow you to enable/disable the two kinds of syntax that produce the section headers.
In the screenshot below, the minimap section headers have been customized with a larger font and slightly bigger letter spacing.
You can fiddle around with a number of different minimap settings that might improve how the section headers appear. Search for "minimap" in your settings to pull up all the possible options.
Now on to this week's hand-picked links!