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

Command + optional shortcut for collapsing generic sidebar view #242430

Open
jakelevi1996 opened this issue Mar 2, 2025 · 2 comments
Open

Command + optional shortcut for collapsing generic sidebar view #242430

jakelevi1996 opened this issue Mar 2, 2025 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@jakelevi1996
Copy link

Type: Feature Request

There is a command (in command palette) + optional keyboard shortcut to collapse folders in the explorer view. AFAIK there is no command in the command palette to collapse other sidebar views, EG tests (configured with PyTest), although it is possible to collapse the unit tests with the mouse from the GUI. It would be nice if there was one generic "collapse sidebar view" or similarly named command, that collapses whatever view is focused, and could be mapped to a shortcut. Kind of annoying to have to navigate with the mouse every time to collapse the unit tests/other views. Thanks!

VS Code version: Code 1.97.2 (e54c774, 2025-02-12T23:20:35.343Z)
OS version: Linux x64 6.8.0-52-generic snap
Modes:
Remote OS version: Linux x64 4.15.0-220-generic

@aiday-mar aiday-mar assigned sandy081 and unassigned aiday-mar Mar 3, 2025
@sandy081 sandy081 assigned benibenj and unassigned sandy081 Mar 3, 2025
@sandy081 sandy081 added the feature-request Request for new features or functionality label Mar 3, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Mar 3, 2025
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@benibenj
Copy link
Contributor

benibenj commented Mar 3, 2025

If you focus the view header and use right and left arrow keys you are able to expand and collapse views.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants