'the popup menu coming on right click disappears instantly in vscode
I just started using Vscode on Ubuntu 18.0. I have the following problem. When I try to copy a particular line, when I click the right-click button on my mouse, the pop-up menu disappears instantly as soon as I release the right-click button. So if I want to copy or cut the selected line, I have to move the cursor while holding the right-click button. I did not like this behaviour. How can we change this to normal? That is the menu that comes when we click the right button on the mouse and it stays there until we close it by clicking somewhere else?
Solution 1:[1]
The problem was fixed when I uninstalled the extensions, Pylance and Python. Apparently, if we install these packages they directly alter even the basic things such as the right-click menu.
Solution 2:[2]
I had a same issue. I think the reason of this error come from change of right click menu.
With this theory, I remove Jupyter extension because this extension change right click menu. (Also, I want to use Python extensions.) Then, "instantly disappeared right click menu" problem is solved for me.
Try to remove extension that change right click menu.
(My env: Ubuntu 18.04; VS Code 1.63.2)
Solution 3:[3]
All of the existing answers propose to uninstall certain extensions, which does not help if I want / need to use these extensions.
Instead, I found that in this thread on github a better solution is proposed that is described in https://askubuntu.com/a/470219/75050. There, it is explained how to use the Easystroke Gesture Recognition to solve the problem. Reproducing the answer by kenn:
Install "Easystroke Gesture Recognition" from repository
sudo apt-get install easystroke
Open Easystroke and go to the preferences tab, click on "Gesture Button", and right click on the rectangular area to select the right mouse button.
In the "Timeout Profile" dropdown list pick up "Timeout Off"
This fixed the problem in VS code for me.
Solution 4:[4]
I tested by disabling the Jupyter extension. The issue is fixed. Pylance and Python are remain activate in my case.
edit: Pylance causes the same issue only when selecting the commented code.
OS: Ubuntu 20.04.4, Snap version VS Code: 1.65.2
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | brownfox |
Solution 2 | ??? |
Solution 3 | fuenfundachtzig |
Solution 4 |