Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

right click context menu in vs code executes immediately

When I right click in the editor, vs code executes whatever menu item the cursor happens to be over. It happens far too fast for me to make my actual choice known.

I have already spent 30 minutes trying to find a solution. If you search for "right click" in the Command Palette, you are told there are no matches. You don't get any hits in the docs, either. Please advise. Thank you.

like image 920
Malik A. Rumi Avatar asked Sep 12 '25 05:09

Malik A. Rumi


1 Answers

It's crazy, but this is still an issue for Linux users after so many years. Especially, when using a Laptop with touch-pad it makes VSCode frustrating to use. The problem occurs when you use "native" window style (you can tell, because the theme will not be applied to context menus) and have a non-default zoom.

The GitHub issue that @sercan linked to has a few solutions. In order to save you some time, there is basically two things that I found work and make sense:

  1. Set your zoom level to default / 0. In settings.json add: "window.zoomLevel": 0 This works with all window styles, but obviously is not always viable
  2. Change the title bar style from native to custom. In settings.json add: "window.titleBarStyle": "custom" This will change how the title bar but also the context menus look. Setting this, you can zoom in again
like image 154
mc51 Avatar answered Sep 14 '25 23:09

mc51