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

Restrict open editors to a certain number #13135

Open
tsmaeder opened this issue Dec 1, 2023 · 1 comment
Open

Restrict open editors to a certain number #13135

tsmaeder opened this issue Dec 1, 2023 · 1 comment
Labels
editor issues related to the editor editor-preview issues that are related to the editor-preview ui/ux issues related to user interface / user experience

Comments

@tsmaeder
Copy link
Contributor

tsmaeder commented Dec 1, 2023

Feature Description:

I propose that we introduce a preference to allow for only a certain number of editors (say "20"). When this number is reached, the least recently used editor is closed when a new one is opened.

We currently have the "enablePreview" setting, but that behavior closes the most recently used editor (unless I explicitly prevent that). But when browsing around code, I often want to go back and forth between editors, even though I'm just reading code. My focus for reading code moves to different areas as I go along, so editors from other areas can be closed.

@tsmaeder tsmaeder added editor issues related to the editor editor-preview issues that are related to the editor-preview ui/ux issues related to user interface / user experience labels Dec 1, 2023
@vince-fugnitto
Copy link
Member

A combination of the following preferences in VS Code:

VS Code provides a few other related preferences to control the behavior further (ex: dirty files, editor groups).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor issues related to the editor editor-preview issues that are related to the editor-preview ui/ux issues related to user interface / user experience
Projects
None yet
Development

No branches or pull requests

2 participants