Skip to content
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

[SUGGESTION] Being able to collapse all folders in solution view in C# DevKit #612

Open
svdbrg opened this issue Oct 13, 2023 · 6 comments
Labels
area-solution Solution explorer enhancement New feature or request
Milestone

Comments

@svdbrg
Copy link

svdbrg commented Oct 13, 2023

Describe the feature you'd like

As a user who's been working with VS Code for a while, I've gotten used to collapsing all folders in folder view. Would be nice to have that available in Solution View as well.

Alternatives considered

N/A

Environment Information

OS: Windows 11
VS Code Version: 1.83.1
Extension Version: v0.6.3

@svdbrg svdbrg added the enhancement New feature or request label Oct 13, 2023
@microsoft-issue-labeler microsoft-issue-labeler bot added the area-solution Solution explorer label Oct 13, 2023
@svdbrg svdbrg changed the title [SUGGESTION] Being able to collapse all folders in solution view [SUGGESTION] Being able to collapse all folders in solution view in C# DevKit Oct 13, 2023
@timheuer
Copy link
Member

Thanks for the suggestion @svdbrg! I also use this in the default explorer view a lot.

For the Solution Explorer view if we added the collapse all:
image

In a solution with many projects, what would you expect to see?
Collapse only to the projects? Option A:
image

Or fully emulating what VS Code Explorer does and collapses anything that is collapsable? Option B:
image

@svdbrg
Copy link
Author

svdbrg commented Dec 11, 2023

@timheuer Thanks for looking into this :D
I'd expect option A; collapsing all projects but not the solution itself.

@mkorsukov
Copy link

Totally agree, it's a must have feature!

@achobanov
Copy link

Another thumbs up. Recently we got the file tracking in solution explorer, ty. Here's hoping..

@itskazemk
Copy link

Screen.Recording.2024-11-17.103025.mp4

@achobanov
Copy link

While I do think this should be a build-in feature, VS Code's commands are awesome enough so you can actually do this:

{
   "key": "ctrl+left",
   "when": "listFocus && !inputFocus && !treestickyScrollFocused",
   "command": "runCommands",
   "args": {
     "commands": [
       "list.collapseAll",
       "list.focusDown",
       "list.expand"
     ]
  },
},

Add this to your user keybinding.json (command palette -> Preferences: Open Keyboard Shortcuts (JSON))

You may need to clear keybind conflics, if any - open the keybinding settings (command palette -> Preferences: Open Keyboard Shortcuts) and type ctrl+left to search for bound commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-solution Solution explorer enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants