Skip to content

Window always on top #73046

@TheColorRed

Description

@TheColorRed

There are times when I would like the editor to ALWAYS be on top of other widows, such as when I am writing JavaScript code for the browser and I am limited on screen space, I would sometimes like to have vscode on top of my browser even when the browser has focus.

I have a Windows 10 extension to do this when I right click on a Windows window, an option shows to keep the window on top (This is also built into Ubuntu):

Always on top

This works for most windows, but when using the "window.titleBarStyle": "custom" option in vscode that Always on top doesn't exist any more as seen here:

Always on top gone

I see that Electron has an option for this, but it isn't utilized in vscode

https://github.com/Microsoft/vscode/blob/master/src/vs/code/electron-main/window.ts#L127

new BrowserWindow({ alwaysOnTop: true })

It would be helpful (at least for me) if either:

A. Additional window options were added to the title bar.
B. There was a command that toggled forcing the window to stay on top.

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicateIssue identified as a duplicate of another issue(s)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions