You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Context menu gets too small depending on the cursor position #224515
electronIssues and items related to ElectronmenusMenu items and widget issuesupstream-issue-linkedThis is an upstream issue that has been reported upstream
Context menus style has changed with lastest vscode version and they are not the right size. Edit: issued by chrome which changed the sytle of the menus, explained hereelectron/electron#42262 Edit 17/april/2025: the upstream was Closed as not planned.
VS Code version: Code 1.92.0 (b1c0a14, 2024-07-31T23:26:45.634Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Reacted by Jacob Chapman, Andrii Derhach, Luke Horwell, Vallek, Amith Mohanan, Leonardo Godoy, halfburnttoast, Raul Santos, Luis Bocanegra, Médi-Rémi Hashim and 68 more
I was going to open a report too. I couldn't find any mention in the release notes, or any setting, so I think it could be related to the Electron 30 upgrade.
Using Arch Linux / KDE with a 2160p monitor here (2.0 global scale). Context menus are way too padded and large here too.
1.91.1
1.92.0
(I admit the newer menu does position better horizontally to the left)
Looks like the new menu goes either all above or all below the cursor position, hence the scrolling.
Would really love to see an option for the old (native?) menus back. If that's impossible, at least add customisation options to control the padding, font, colours to make the new menu more comfortable.
Reacted by Adam Dingle, halfburnttoast, Leonard Lesinski, FcDen, metablaster, Denis Fadeyev, Austin, RH DÆMNT, peter-fb, Melissa and 10 more
I'm using Ubuntu 24.04. With this VS Code release the context menu font is uncomfortably large on my machine as well. I'd also like to have an option to use the old menu style.
I think the title of this issue (currently "Context menu gets too small depending on the cursor position") should be more general, e.g. "Context menu has inappropriate font size".
Reacted by Raul Santos, Daniel Lipovetsky, Jacob Chapman, Vallek, metablaster, RH DÆMNT, peter-fb, Adam Perry, Dikhi Martin, Akalanka Sakalasooriya and 20 more
I'm using Ubuntu 24.04. With this VS Code release the context menu font is uncomfortably large on my machine as well. I'd also like to have an option to use the old menu style.
I think the title of this issue (currently "Context menu gets too small depending on the cursor position") should be more general, e.g. "Context menu has inappropriate font size".
inappropriate font size and padding
Reacted by Vallek, peter-fb, Fira, Didi Ruhyadi and langfeld
Please give us an option to revert it! I don't need or want tablet style menus in a desktop code editor)
Reacted by Jacob Chapman, Leonardo Godoy, ArcticLampyrid, Cristian Livella, Austin, Theo Brown, peter-fb, Steven Tattersall, Miika Lehtinen, zach and 5 more
Also having this problem with Linux Mint MATE 21.3. The menu items are way too large. The context menu is so large that the items can't fit on the screen. I've downgraded back to 1.91 for now.
Reacted by metablaster, Theo Brown, peter-fb and aminahbl
Same here. Also, the menu is bright white for me, despite using the dark modern theme. Maybe that's because I'm using the mixed Linux Mint theme (most parts are white, some are black for contrast)? I feel that it should at least match up with the app theme, like the old one did (or have an option to revert back to the old version altogether).
I've figured out a temporary solution, at least on linux. Set window.titleBarStyle to "custom". This restores the context menus, though also changes other parts of the UI. I've attached some screenshots for comparison.
Reacted by Vallek, Médi-Rémi Hashim, Leonard Lesinski, Gary Matthews, kapodamy, Sheldon Maschmeyer, Hein Bekker, Strapontin, Nicolas Jeker, Loanne LUCOTTE and 79 more
Reacted by Amith Mohanan, Leonard Lesinski, Gary Matthews, Nadir Sidi, Strapontin, Enguerrand de Ribaucourt, Francisco Matheus Gonçalves de Souza, Luiz Fernando Rabelo, Guy Marshall, Vadim and 11 more
Reacted by RasmusLar, ArcticLampyrid, Cristian Livella, René Hauck, Ian Colwell, Pavel Mickevic, Yiannis Koutsoumpidis, Jaizkibel, crimist, Alejandro Aguayo-Ortiz and 16 more
Reacted by Luke Horwell, Bipin Maharjan, Akalanka Sakalasooriya, deridiot, Mr Beedell, Roke Julian Lockhart, Theo Brown, crimist, Joshua Jones, spaddex and Brian Cline
cheers CGooden9 this is exactly the fix i was looking for to solve the context menu font size issue. now its a matter of excess padding but this puts most if not all menu items back into view instead of having to scroll to menu items on wasted screen real estate which is a frustrating experience.
Enabling the custom window style solves the context menu but fucks up the title bar, since it tries to use the vscode title bar implementation (which takes a gigantic chunk of precious vertical space).
💡 Tip for Linux KDE/KWin (X11) users: You can force the native title bar with a custom title bar style (the workaround to fix menus as mentioned) by adding a window rule like so:
System Settings → Window Management → Window Rules → New
Window class (application) : code Code
Add: "No titlebar and frame" : "Apply Initially" = "No"
Although, this may not be useful if you want the title bar and tab bar only. This is like having a menu bar & poor man's toolbar (#41309) stitched together above the tabs. There's also double window controls until #229385 is merged (thanks Rob Rolls (@tycode) for working on that!). For me, the native title bar is important as it's my middle click shortcut to lower windows.
I actually prefer VS Code's custom menus over the "native" ones the earlier versions had - that's probably because VS Code's menus have an empty icon column, even though VS Code doesn't populate them (#208482), this menu layout/spacing is more in line with the rest of the system.
I'm not sure if the other window compositing managers (marco, metacity, openbox, i3) have this ability if you wanted to use this workaround.
Reacted by Kozmotronik, Sofie Hanzlíková, Square789 and Mr Beedell, Roke Julian Lockhart
I've figured out a temporary solution, at least on linux. Set window.titleBarStyle to "custom". This restores the context menus, though also changes other parts of the UI.
Electron (upstream) made their position clear that they won't diverge from Chromium to bring back the old menus. Chromium (their upstream) will need to bring them back.... but I have some doubts.
I believe these PRs can be a way forward for VS Code - avoid Chromium's so-called "native" menus and have VS Code split their configuration (as Rob Rolls (@tycode) proposed) so native window title bars are not tied under nativeugly Chromium menus. It seems that Electron for macOS is only one that truly uses the OS' "native" menu.
Both menu styles are custom on Linux. Ideally, Electron would allow using an actually native menu on Linux.
Philipp A. (@flying-sheep), "native" doesn't mean much here. Do you mean that VSC should implement a Qt 6 and GTK 4 context menu? Chromium has integrations with both toolkits (although its Qt 5 or 6 integration is dreadful, and the GTK 3 one is substandard too), but I believe that that's specific to the browser's GUI, rather than something provided with the engine itself. I don't see that occurring without a separate issue filed for it, and I don't think it would be in scope for upstream Electron.
With the insider update (#245423) users can set "Window: Menu Style" separately apart from "Window: Title Bar Style".
Here is the ideal result, native title bar and custom menu:
There's a bug with this update. With Title Bar Style set to native and Menu Style set to custom (the setting you need to get normal sized menus), the Menu Bar Visibility setting of "classic" no longer works - no matter what you pick, the menu doesn't show, even with Alt.
There's a bug with this update. With Title Bar Style set to native and Menu Style set to custom (the setting you need to get normal sized menus), the Menu Bar Visibility setting of "classic" no longer works - no matter what you pick, the menu doesn't show, even with Alt.
I tested this last night (see #251113 (comment)) and it looks fine to me:
with the following version: (which I guess is now one day out of date)
There's a bug with this update. With Title Bar Style set to native and Menu Style set to custom (the setting you need to get normal sized menus), the Menu Bar Visibility setting of "classic" no longer works - no matter what you pick, the menu doesn't show, even with Alt.
I tested this last night (see #251113 (comment)) and it looks fine to me:
with the following version: (which I guess is now one day out of date)
(Menu Bar Visibility is at its default of "classic")
If there's a new bug (maybe a newly introduced regression?) then probably better to open a new issue for it, with full repro steps.
Thanks for this, toggling window.commandCenter on and back off made the menu appear. Must've just been a side effect of the exact order of enabling things.
Reacted by Mr Beedell, Roke Julian Lockhart and Rob Rolls
There's a bug with this update. With Title Bar Style set to native and Menu Style set to custom (the setting you need to get normal sized menus), the Menu Bar Visibility setting of "classic" no longer works - no matter what you pick, the menu doesn't show, even with Alt.
As you can see I use the compact menu bar to avoid it.
Thanks for this, toggling window.commandCenter on and back off made the menu appear. Must've just been a side effect of the exact order of enabling things.
Having now updated 1 Linux PC and 3 Windows PCs to VS Code Stable 1.102 myself, I had this issue on one of the Windows PCs, and the same fix worked: toggling window.commandCenter on and back off. The other three PCs had no problem.
electronIssues and items related to ElectronmenusMenu items and widget issuesupstream-issue-linkedThis is an upstream issue that has been reported upstream
Activity
Scorg commentedon Aug 2, 2024
I have a similar problem, but also with fonts being bold:

lah7 commentedon Aug 2, 2024
I was going to open a report too. I couldn't find any mention in the release notes, or any setting, so I think it could be related to the Electron 30 upgrade.
Using Arch Linux / KDE with a 2160p monitor here (2.0 global scale). Context menus are way too padded and large here too.
Looks like the new menu goes either all above or all below the cursor position, hence the scrolling.
Would really love to see an option for the old (native?) menus back. If that's impossible, at least add customisation options to control the padding, font, colours to make the new menu more comfortable.
medovina commentedon Aug 2, 2024
I'm using Ubuntu 24.04. With this VS Code release the context menu font is uncomfortably large on my machine as well. I'd also like to have an option to use the old menu style.
I think the title of this issue (currently "Context menu gets too small depending on the cursor position") should be more general, e.g. "Context menu has inappropriate font size".
godoyLeonardo commentedon Aug 3, 2024
inappropriate font size and padding
chapmanjacobd commentedon Aug 3, 2024
It seems like the new context menu loads a 100~200 ms slower too
Vallek commentedon Aug 3, 2024
Please give us an option to revert it! I don't need or want tablet style menus in a desktop code editor)
halfburnttoast commentedon Aug 3, 2024
Also having this problem with Linux Mint MATE 21.3. The menu items are way too large. The context menu is so large that the items can't fit on the screen. I've downgraded back to 1.91 for now.
CGooden9 commentedon Aug 4, 2024
Same here. Also, the menu is bright white for me, despite using the dark modern theme. Maybe that's because I'm using the mixed Linux Mint theme (most parts are white, some are black for contrast)? I feel that it should at least match up with the app theme, like the old one did (or have an option to revert back to the old version altogether).

CGooden9 commentedon Aug 4, 2024
I've figured out a temporary solution, at least on linux. Set window.titleBarStyle to "custom". This restores the context menus, though also changes other parts of the UI. I've attached some screenshots for comparison.


kapodamy commentedon Aug 4, 2024
upstream problem electron/electron#42262
GaryMatthews commentedon Aug 5, 2024
cheers CGooden9 this is exactly the fix i was looking for to solve the context menu font size issue. now its a matter of excess padding but this puts most if not all menu items back into view instead of having to scroll to menu items on wasted screen real estate which is a frustrating experience.
akalankasakalasooriya commentedon Aug 7, 2024
Same happened to me on ubuntu 22.04. KDE plasma
#225033
26 remaining items
jamesrobb commentedon Oct 14, 2024
Running into this with Manjaro, Plasma 6.1.5, VSCode 1.94.1
elamperti commentedon Dec 14, 2024
Same issue here — Manjaro, i3wm, VSCode v1.96
Enabling the custom window style solves the context menu but fucks up the title bar, since it tries to use the vscode title bar implementation (which takes a gigantic chunk of precious vertical space).
lah7 commentedon Dec 16, 2024
💡 Tip for Linux KDE/KWin (X11) users: You can force the native title bar with a custom title bar style (the workaround to fix menus as mentioned) by adding a window rule like so:
code CodeOptionally, use the Custom CSS JS Loader extension to hide the application icon in the menu bar with CSS:
End result:

Although, this may not be useful if you want the title bar and tab bar only. This is like having a menu bar & poor man's toolbar (#41309) stitched together above the tabs. There's also double window controls until #229385 is merged (thanks Rob Rolls (@tycode) for working on that!). For me, the native title bar is important as it's my middle click shortcut to lower windows.
I actually prefer VS Code's custom menus over the "native" ones the earlier versions had - that's probably because VS Code's menus have an empty icon column, even though VS Code doesn't populate them (#208482), this menu layout/spacing is more in line with the rest of the system.
I'm not sure if the other window compositing managers (marco, metacity, openbox, i3) have this ability if you wanted to use this workaround.
glitterkitty commentedon Jan 14, 2025
#224515 (comment)
thx CGooden9
worked for me, too
0009-0009-1013-986X commentedon Feb 28, 2025
1
Luke Horwell (@lah7), are you using XOrg 11? I believe it'll only work for that and XWayland, per
bugs.kde.org/show_bug.cgi?id=452240.Footnotes
#issuecomment-2545724749↩lah7 commentedon Feb 28, 2025
@RokeJulianLockhart Yes, I'm using X11. Thanks for the info. I've updated my previous comment.
A plus for the custom menus is that they can be recoloured to blend in with the rest of the system:
{ "workbench.colorCustomizations": { // Colours for KDE Breeze "menu.background": "#25282c", "menu.foreground": "#eaebef", "menu.selectionBorder": "#47a8d9", "menu.selectionBackground": "#2f5469", "menu.selectionForeground": "#eaebef", "menu.separatorBackground": "#55585b", } }Electron (upstream) made their position clear that they won't diverge from Chromium to bring back the old menus. Chromium (their upstream) will need to bring them back.... but I have some doubts.
I believe these PRs can be a way forward for VS Code - avoid Chromium's so-called "native" menus and have VS Code split their configuration (as Rob Rolls (@tycode) proposed) so native window title bars are not tied under
nativeugly Chromium menus. It seems that Electron for macOS is only one that truly uses the OS' "native" menu.oc109 commentedon Jun 1, 2025
With the insider update (#245423) users can set "Window: Menu Style" separately apart from "Window: Title Bar Style".
Here is the ideal result, native title bar and custom menu:
flying-sheep commentedon Jun 3, 2025
Both menu styles are custom on Linux. Ideally, Electron would allow using an actually native menu on Linux.
But for the purpose of this issue (wrongly sized menu) I guess this fixes it!
0009-0009-1013-986X commentedon Jun 3, 2025
Philipp A. (@flying-sheep), "native" doesn't mean much here. Do you mean that VSC should implement a Qt 6 and GTK 4 context menu? Chromium has integrations with both toolkits (although its Qt 5 or 6 integration is dreadful, and the GTK 3 one is substandard too), but I believe that that's specific to the browser's GUI, rather than something provided with the engine itself. I don't see that occurring without a separate issue filed for it, and I don't think it would be in scope for upstream Electron.
ra50 commentedon Jun 13, 2025
There's a bug with this update. With Title Bar Style set to native and Menu Style set to custom (the setting you need to get normal sized menus), the Menu Bar Visibility setting of "classic" no longer works - no matter what you pick, the menu doesn't show, even with Alt.
tycode commentedon Jun 13, 2025
I tested this last night (see #251113 (comment)) and it looks fine to me:
with the following version: (which I guess is now one day out of date)
and settings.json:
{ "window.titleBarStyle": "native", "window.menuStyle": "custom", "workbench.navigationControl.enabled": false, "window.commandCenter": false, "chat.commandCenter.enabled": false, "workbench.layoutControl.enabled": false }(Menu Bar Visibility is at its default of "classic")
If there's a new bug (maybe a newly introduced regression?) then probably better to open a new issue for it, with full repro steps.
ra50 commentedon Jun 13, 2025
Thanks for this, toggling
window.commandCenteron and back off made the menu appear. Must've just been a side effect of the exact order of enabling things.oc109 commentedon Jul 10, 2025
As you can see I use the compact menu bar to avoid it.
tycode commentedon Jul 15, 2025
Having now updated 1 Linux PC and 3 Windows PCs to VS Code Stable 1.102 myself, I had this issue on one of the Windows PCs, and the same fix worked: toggling
window.commandCenteron and back off. The other three PCs had no problem.oc109 does this fix work for you?
0009-0009-1013-986X commentedon Jul 16, 2025
Rob Rolls (@tycode), since multiple people have experienced this, I suggest someone affected file an issue about it.