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

Feature request: VS code api for working with the size of the window, text editor and panels #195406

Closed
wiegell opened this issue Oct 11, 2023 · 4 comments
Labels
api feature-request Request for new features or functionality layout General VS Code workbench layout issues

Comments

@wiegell
Copy link

wiegell commented Oct 11, 2023

I would like the vs code API to expose certain features:

  • Width and height properties as well as SetWidth() and SetHeight() methods for
    • The panels
    • The entire window
    • All of the texteditors
  • Location of vs code window on the screen

The motivation:
Multiple highly upvotes issues have been made (#367, #2686, #10121) regarding the capability of multiple windows of the same vs code instance.
The main need for this is to allow for better experience on multi monitor setups.
Though recognized as a highly requested feature it seem to be staying in the backlog. My guess is, that it is because it will require some larger restructuring of vs code.
By exposing the above mentioned properties and methods you could allow the community to somewhat mitigate the lack of multi window support by developing extensions that could allow one instance of vs code to resize and span multiple monitors and reposition the split views to match the monitor divide.
I suspect many other cool extensions could be made with these hooks, e.g. hotkeys to resize split view to a certain division of the width, etc.

Limitations:
At least on macOS for one window to span multiple monitors one must have "Displays have separate spaces" disabled.

I hope you will consider this, vs code is a great piece of software, but i sure miss multi monitor support.

@gjsjohnmurray
Copy link
Contributor

#10121 is on the current iteration plan #195109

@bpasero bpasero added feature-request Request for new features or functionality api layout General VS Code workbench layout issues labels Oct 12, 2023
@bpasero bpasero removed their assignment Oct 12, 2023
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Oct 12, 2023
@VSCodeTriageBot
Copy link
Collaborator

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!

@VSCodeTriageBot
Copy link
Collaborator

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot
Copy link
Collaborator

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality layout General VS Code workbench layout issues
Projects
None yet
Development

No branches or pull requests

4 participants