Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: Folding code with [+] [-] sign instead of the default [>] [∨]

Summary: I want 2 things:

  • (1) I want my folding symbols in VS Code to be [+][-] (similar to Visual Studio) instead of the default [>][v] one
  • (2) I want my Extensions section can have downloads and rating preview

Story: I randomly saw those features (1) on an answer on Stackoverflow and (2) in the site Extension Gallery of VSCode. I don't have enough reputation to comment below the Stackoverflow answer to ask him how to get those (1) [+][-] symbol features. I tried to put a question on Software Recommendation Stack Exchange but didn't get an answer.

The question I put on Softwarerecs site is more detailed with images so you guys can visit it to see the images and more detailed question.

First time I asked, thank you in advance.

Edit:
(1): It seems the [+][-] icons were replaced with [>][v] recently. I don't know if there's a workaround to get it back? I think this discussion will be a bit helpful to this problem.

(2) solved: Because I resized the sidebar window to too small so the downloads and rating part didn't show up. As I expand the sidebar bigger the downloads and rating shows up again.

like image 677
Loi Nguyen Huynh Avatar asked Sep 24 '19 04:09

Loi Nguyen Huynh


People also ask

How do I enable folding in VS Code?

Unfold (Ctrl+Shift+]) unfolds the collapsed region at the cursor. Toggle Fold (Ctrl+K Ctrl+L) folds or unfolds the region at the cursor.

How do I change the default formatter in VS Code?

Now, highlight your code and right-click. Select Format Document. Once you click on Format Document, a dialog box will tell you to configure your code formatter. This is to set your default code formatter.


2 Answers

you can add custom folding controls icons with the help of this extension: Minimalist Product Icon Theme

its override the product icons that ship with VS Code, Activity bar icons, Status Bar, Code collapse/expand

like image 151
tokochi Avatar answered Sep 28 '22 02:09

tokochi


In the first problem, I can confirm that in the latest version of VSCode the [+] and [-] was no longer used. And what I searched about basic editing of folding, changing the icons was not included. Also the thread you mentioned was back from 2016 and many changes was made to VSCode UI. So I think it is not possible to simple make the folding icon [+] and [-].

If you want to read more about the update logs of VSCode follow this link.

like image 40
Francis G Avatar answered Sep 28 '22 01:09

Francis G