-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User configurable indent in file explorer #35447
Comments
@bpasero is there already a feature request for this (could not find it with a quick search)? |
I think not, maybe @aeschli knows because this seems to be related to using icons. |
Having the same issue here.Thought it was 2 spaces by default somewhere, couldnt find the setting. |
I too would like a way to set a deeper indent. |
+1 from me for this please. I find it's the indentation of subdirectories that isn't deep enough to be useful at a glance. Files are indented well. So because of the inconsistency it's hard to visually trace a vertical line down to find next/sibling folders. Perhaps I just need a new theme. Hmm. |
Is it possible to modify this through themes? |
That would be the best solution I think, but I'm afraid at the moment I don't see it possible. |
+1 👍 @aeschli this would be a great configuration option for usability. The current indent (2 spaces?) is way too small for a good visibility, especially when we use large screens and there is plenty empty space left. |
Yeah please, one of the most heavily used area is this explorer panel. Current setting for indentation level of this panel is so small. Its one of the reasons that I felt desperate about vscode. If this can be configured that would be awesome. Yay! |
+1 |
+1 |
I would also like to see this feature implemented. Struggling with the small indentation. |
+1 |
2 similar comments
+1 |
+1 |
+1 As others have said, this would really help with quick visual distinction of folder/file hierarchy. |
+1 |
Any progress on this? |
A lot of supporters, but I am not aware of any progress. |
Agree this would be very helpful! |
+1 to this. Would be extremely useful, I can barely figure out what's happening with current (forced) indentation. |
This comment has been minimized.
This comment has been minimized.
+1 |
how many people have to ask for this simple fix? This looks like it would be easy to fix no? |
|
+1 |
The hierarchical lines are impossible to get right. I gave up and just focused on improving the indentation. The result looks a lot better and is far simpler than trying to fix the lines. The file to edit is (on
:root { --tree-width: 20px; }
.explorer-folders-view .monaco-tree-row { overflow: visible !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "1"] { padding-left: calc( 0 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "2"] { padding-left: calc( 1 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "3"] { padding-left: calc( 2 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "4"] { padding-left: calc( 3 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "5"] { padding-left: calc( 4 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "6"] { padding-left: calc( 5 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "7"] { padding-left: calc( 6 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "8"] { padding-left: calc( 7 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level= "9"] { padding-left: calc( 8 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="10"] { padding-left: calc( 9 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="11"] { padding-left: calc(10 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="12"] { padding-left: calc(11 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="13"] { padding-left: calc(12 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="14"] { padding-left: calc(13 * var(--tree-width)) !important; }
.explorer-folders-view .monaco-tree-row[aria-level="15"] { padding-left: calc(14 * var(--tree-width)) !important; } The final result looks like: |
@shreeve Thanks for the workaround. Do we add that code directly to the end of the |
@ansiblejunky Yes, just add that code to the end of the file and restart vscode. Should be that simple! |
This doesn't seem to work so well under Windows. VS Code reports corrupt installation. |
@MarkDalsaso - From what I understand, the "corrupt installation" message is due to VS Code seeing that the There really is just a variable deep in the code that hard codes this value to I can create a pull request to have this officially pulled into the main repo. |
See #66579 - Improve file explorer indentation levels |
Thanks Steve, and great job! The indentation in the Explorer is an important visual cue, and one that everyone has their own preference for. It shouldn't be a pain in the patootie to adjust! |
Wahoo... it looks like this is finally getting resolved officially! Check out: #66605 - Introduce tree.indentPixels configuration Thanks @isidorn, @joaomoreno, and @bpasero! |
You can try this out in tomorrow's vscode insiders and let us know what you think. |
Nice! Looks exactly like what was needed! Great job ALL! |
How can I get visible file tree lines? |
@technolingo there's a separate issue for this. See Directory tree indent guides in File Explorer #17777. React to the first post with a thumbs up to show your support of that |
I want to configure the indent of files inside folders within the sidebar file explorer.
I am using the
Seti (Visual Studio Code)
file icon themeCurrently, the indent is too small so it's hard for me to see whether files are part of a folder or not. I would like to be able to set this indent to a user configurable amount.
For example, in the below screen shot it's difficult for me to quickly see that:
The text was updated successfully, but these errors were encountered: