I have some enhancement requests for the current minimap implementation which are already available in Atom
as separate plugins.
"editor.minimap.showSlider": "always"
(its default is however set to mouseover
)Atom
as a separate plugin minimap-pigments
which I find very convenient. Sublime Text
and has a white background (instead of grey)... see print screen.I think 3 is the one I mostly use - so easy to find or find and replace when you can see the highlights in the minimap - as long as they are very visible (strong contrast) - in atom and sublime the highlights are not nearly as visible as they should be, it's too easy to miss them in the syntax colors...
if minimap is enabled AND with the behavior fixed as @ghiscoding suggested, we don't need that slim default bar, minimap replaces it
Request 1 (always show the viewport on the minimap) is now being tracked at https://github.com/Microsoft/vscode/issues/21784. Request 3 seems to be a partial duplicate of https://github.com/Microsoft/vscode/issues/20934 ("editor selection" is one of the things asked for in that issue). Request 2 does not have any duplicates that I could find.
I would like it when the current line is also highlighted in the minimap.
I'm very surprised there is no highlight on minimap - guess will STILL stick with atom.io for now.
Request 3 is a feature that exists in Atom, at least via third-party packages. In my opinion, that is very much needed and without that the utility of the minimap is questionable at best. Hopefully they will implement this feature soon.
In the meantime, I'll still be sticking with VScode instead of atom as I totally love the git integration in VScode, including the diff feature and due to the search feature being in the sidebar rather than editor window.
I quickly hacked together a rudimentary implementation of Request 1 and 3 at https://github.com/abhijitvalluri/vscode/commit/a1f2d2fdb63eba1838922dae3f10131b289d42ae
For request 3, I couldn't yet figure out how to highlight just the precise token corresponding to the word that is highlighted. So, instead I decided to highlight the entire line. In my opinion, this is probably a bit better as it is easier to see the whole line light up instead of just the word, which will be much smaller and harder to spot.
Example screenshot:
You could take that code, modify it and make your own custom version of vscode. And if you can make it nicer still go ahead and send in a PR!
Made some improvements to the minimap highlight implementation: https://github.com/abhijitvalluri/vscode/commits/minimap_enhancements
Right now, all the implementation details are hardcoded, including it being set up for a dark theme. Also, there is a bug wherein if the file is too large, so that the minimap scrolls and does not fit entirely in one view, then only highlights for the portion of the file that is visible in the minimap works. Once you scroll, there are no highlights for the invisible part of the file in the minimap.
UPDATE:
I have made the necessary changes to fix the issues I mentioned above: highlights work correctly even for very long files, scrolling does not remove highlights etc. in https://github.com/abhijitvalluri/vscode/commit/46c6691fdf14e979a6a00bfa077ca36678e3f6a3
If you don't mind this hardcoded feature, and are fine with the dark theme, then you can make a packaged version of this by running:
gulp vscode-[platform]-min
And then you will have your very own vscode with highlighting in the minimap. This is good enough for me, for now! So I am using this as my default version of vscode! 🤓
@alexandrudima do you think it would be possible to use/merge the code provided by @abhijitvalluri for the number 3. that I have in the list
- Highlight the text in the editor would also highlight the text in the minimap. This is only available in Sublime Text and has a white background (instead of grey).
My code may not be in a good shape for merging. So, I can clean it up if needed so that these changes can be made use of in vscode! Do let me know.
The number (1) from the list has now been implemented Minimap: add a alwaysShowViewport
setting - 21784. A new setting will available in the June version. "editor.minimap.showSlider": "always"
+1 would like to get Request #3 implemented. Migrated from Atom and finding it horribly inefficient to hav no word highlighting in the minimap.
Is there already a ticket for the minimap word highlights? I've seen it mentioned in a few tickets but it was always mixed with other things for the minimap.
I need this too
Unfortunately, minimap seems to be very low on the priority list (if not forgotten).
Tweeted to Visual Code and we need a bigger push for this feature just fyi
Someone needs to make a case to the big wigs, because it honestly will improve aggregate employee effectiveness over a known interval of time because all you have to do is double click words and look at the minimap to see if further action is needed.
This increases maximum potential actions over the known interval by minimizing mental and physical boilerplate associated with finding or confirming keyword instances without using the minimap. It is an inversely proportionate relationship. As time spent analyzing increases, file changes per second decreases. Multiply this by the number of Microsoft employees and the cost-benefit ratio warrants the potential gain in sprint velocity.
This upgrade saves unnecessary trips to CTRL+F to iterate through results, and allows you to confirm if keyword placements are present or missing at known locations in the file with an average time-to-completion of 0.5 to 2 seconds with minimap and 5 to 10 seconds with CTRL+F.
Thanks @agm1984. Hopefully, more people will tweet/comment for this feature to make it to next release. Honestly, this is the one feature that keeps me from using VScode as my sole editor, double clicking on a word and seeing it sprinkled throughout the minimap is an amazing thing :)
By the way, I recently looked into rebasing my above hack to enable highlighting for newer builds of vscode. Sadly however, it looks like the underlying code changed by quite a bit and I have not figured out how to redo the same changes on the latest code base. But if it was doable then, it should be doable now, and it OUGHT to be doable by the vscode devs.
If the Vote for popular feature requests listing is any indication of how the team prioritize their work then we have much to lament. This issue in particular is currently on the 3rd page, behind popular requests such as Offline spell checker, Transparent window and A portable version of the app.
How is a transparent window more important than this!!? Sheesh, people want eye-candy more than actual features that are useful for productivity! :(
I'm still using Atom even though is painfully slow sometimes, just because I'm so used to minimap highlighting, it saves me a lot of time for analyzing code. Really cant believe that such a basic feature is still not implemented.
@zemzela I'm doing the same thing. I have Atom open and basically using it as my main editor until I need to use the awesome debugger in VS Code. Hopefully if we keep the conversation going on this topic the good peeps at VS Code will give us this much needed feature. Maybe re/tweet them more to show that the community cares about this feature.
Oh, I really want it!
Minimap word highlighting is the only feature I desperately miss from Atom. Almost a dealbreaker, +1 for giving this feature request higher priority.
Would love these features added. Currently the minimap provides no useful information until these features become available.
In one month we will have to celebrate this thread's birthday.
Keep on strong thread, would like to see you remain open for the years to come.
Still no progress? I would really appreciate 3 - selection highlighting in minimap.
The team really go by number of votes before working on these issues. So the best we can do is up vote and wait patiently :|
Progress on this?
I am another one who comes from Atom I guess... and what I really liked also is the git integration in the minimap (yellow line in the minimap for a modified line for example). For now, the minimap is kind of useless without this and the highlight feature.
Edit it is already mentioned in #20853 and #20934 , to sum up, there are a lot to do to improve the minimap
@bcbane not that I know. It is too bad. I do feel like it is a big missing feature. Also, don't know if there are any extensions that could bring this kind of functionality.
I am still patiently waiting for this feature. It was the first thing I
noticed when I switched over from Atom, and my days have been filled with
crippling sadness due to this lack of mini-map highlight. It would be so
amazing if highlighted words were visible at a glance. The real value comes
in when the highlighted words are off the screen. You know exactly where
they are and can zoom to them by clicking on the mini-map.
On Fri, Sep 21, 2018 at 10:29 AM Juan notifications@github.com wrote:
@bcbane https://github.com/bcbane not that I know. It is too bad. I do
feel like it is a big missing feature. Also, don't know if there are any
extensions that could bring this kind of functionality.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/21404#issuecomment-423613072,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ1ls6qClO34Vf5wUCmSwKcMOID8vStZks5udSHigaJpZM4ML4SV
.
A year later, I still want this feature...
I reluctantly really like vscode and have been transitioning from Atom. This is the one thing that drives me crazy because I use that feature in Atom so much.
I reluctantly really like vscode and have been transitioning from Atom. This is the one thing that drives me crazy because I use that feature in Atom so much.
As a previous atom fan, I really want this...
Me too! I hope the devs prioritize this at some point!
Actually I am starting to thing that it may be redundant with the scrollbar, which does more or less what we want with the minimap. What do you think ? At least, it may be why they do not prioritize this feature :-/
The scrollbar feature helps, but it's not the same. You still have to look around in which column the marked characters are, while in atom and sublime, you just know exactly where to look. It's something that I really miss once I got used to it, even with the scrollbar markup.
As with the others, I too really miss this feature from Atom. It quickly communicates exactly where in the document (vertically AND horizontally) the highlights are located. In addition to what others have said, the current highlighting in the scrollbar is not a good experience because the minimap slider and the scrollbar are often in difference places. So if you use the minimap slider to scroll to the highlights (either visually or click 'n dragging), you're gonna have a bad time.
This feature would be incredibly useful for me as I work in Haskell and it's really difficult in large files to find all the references. Also, I've heard and seen some people talk about combining the thin scroll bar with the minimap scrollbar, and I think that is a great idea. There is currently a little bit of mismatch between the two and it would be great to unify them.
This feature is super useful when Cmd-D selecting multiple occurences of a word that is scattered across a longer file. Coming from Atom I really miss it in VSCode.
Looking forward to seeing this in vscode. Just switched over from Sublime and really missing this feature.
@katespaghetti
The best thing we can do is to vote ⭐️ and hope that this gets higher in their list of popular issues. This issue currently sits in the 3rd page of highest reactions (star), they probably won't take a look at it until it reaches 1st or 2nd page.
Happy Birthday, Y'all!
Its my favorite thread :1st_place_medal:
Is this feature out yet?
I'd like to see the minimap have all the highlighting features of the scrollbar to replace the scrollbar completely. It feels strange and unnecessary to have two scrollbars for the same window.
I've added a comment in next June 2019 Iteration Plan, you guys can up vote there as well if you wish.
Here is a link to comment to vote: https://github.com/microsoft/vscode/issues/75103#issuecomment-500141645
So....The new version came out. It....sort of has this feature we have been waiting for for 2.5 years. A couple problems:
Any chance these can be fixed in less time than 2.5 years? These seem like pretty simple changes to make.
Our wishes might have been heard...
🔴 Support multi-line decorations in the minimap @RMacfarlane
🔴 Explore improving presentation of search results in minimap (size, theme color) @RMacfarlane
that was pulled from July Iteration Plan (2019), it does sound like this ticket 🤞
EDIT
Unfortunately, they are actually different issues with similar subject title. I'm afraid that our issue will not be addressed at this time. Sad to see that it takes years to look into this 😿
With the release of 1.37.0 we kind of have that feature now. The only downside is that it doesn't work on simple selections, but on searches only. That means you need to doubleclick first, and press CTRL+F afterwards... We are almost there. Is there a way to automate searching for the selection?
I tried to talk about it in #78807 along another issue which is assigned to the person who implemented the feature for the search selection. Wait and see
Hey all! I did the work on search results in the minimap, which was the first step of enabling decorations in the minimap. This was meant to be the foundation for further decoration improvements to the minimap. I'm not working on this in the current iteration, but this issue is on my radar!
@RMacfarlane
This is great news, thanks for the info. We waited 2.5 years, so I'm sure we could wait for another iteration before seeing it implemented. We just hope it will be this year lol
I've just checked in the change for showing selection decorations in the minimap, it will be available in tomorrow's VSCode Insiders if you want to try it out early, otherwise in our next stable release in October.
@RMacfarlane
Thanks for the change, this is very welcome change on the productivity side.
Note that I proposed 3 enhancements and now 2/3 are done, we are still missing the "Show Color in Minimap" but it was not as high interested as the other 2 were. You close the issue but I wonder if that would be doable in the future? Should that be a separate issue?
@ghiscoding Can you open a separate issue to track that?
Most helpful comment
In one month we will have to celebrate this thread's birthday.
Keep on strong thread, would like to see you remain open for the years to come.