Reputation: 659
In Visual Studio Code, I prefer having the "Activity Bar" hidden and use the key combinations Ctrl+Shift and E, F, G or X to reach the individual panes.
When I am in the Search pane (revealed with Ctrl+Shift+F) with focus on the editor, I hit Ctrl+Shift+E with the intention of reaching the Explorer pane; instead of exposing the Explorer pane, code inserts the character e
with a black underline.
Now, I suppose this is some feature to insert special characters into editors but, Ctrl+Shift+E as a shortcut for this seems little too conspicuous don't you think? Especially when it is already being used for something else?
I'm not sure when this behavior was changed but I remember that it used to work earlier. Is there a way by which I can disable this special character insertion feature and restore order?
Upvotes: 23
Views: 6829
Reputation: 570
This is a very good workaround.
Run ibus-setup
in the terminal. A GUI dialog will open.
Go to the 'Emoji' tab --> Emoji annotation ellipsis(...) buttton --> Delete 'Ctrl + Shift + E' entry --> OK.
That's it. Works for me on Ubuntu 20.04. You can still access emojis using Ctrl + .
(period).
Upvotes: 15
Reputation: 454
It seems to be an issue with the snap
version of VS Code. Using the apt
version instead solves the issue.
sudo snap remove code
sudo apt install code
Just summarizing the answers so far because currently the fix is in a comment from HolyBlackCat rather than in an answer.
Upvotes: 1
Reputation: 767
Uninstalling vscode is a huge pain in the ass. The way I found less annoying was to switch shortcuts. Instead of Ctrl + shift + e, I now use Ctrl + e, the previous shortcut ( Ctrl + e ) can still be accessed through Ctrl + shift + p.
Upvotes: 4
Reputation: 306
As HolyBlackCats and Pida stated in comments, the best way is to install Visual Studio Code by "sudo apt install" on your Ubuntu, as the problem still exists (even after 2 years).
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code
Upvotes: 11
Reputation: 99
Instead of snap installation, go with the apt one. First of all remove your vscode snap package
sudo snap remove code
And then, follow the instructions on the official page
https://code.visualstudio.com/docs/setup/linux
Or if youre lazy like me, paste this lines into your terminal
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code
Upvotes: 5
Reputation: 659
Okay, it took some time to narrow down this issue. It appears, GTK3 reserves the key combination Ctrl+Shift+E to insert Emoji.
Good news is, this feature has been removed in GTK version 3.24. You can update your GTK version to fix this issue.
Upvotes: 17