Score:0

How can I get ctrl+shift+e to shortcut to work in vscode?

af flag

I am using Ubuntu 21.10.

When I am in vscode and I press Ctrl+Shift+e, the mapping does not get dispatched to vscode, and instead it types an underlined 'e' characters.

I have looked at lots of posts that indicate this is because of ibus, but I have since completely uninstalled ibus from my system, but still the problem persists.

I really need Ctrl+Shift+e mapping for vscode, and I am not willing to change that requirment. Is there anything I can do?

vanadium avatar
cn flag
For me that key combination does nothing in the default editor or word processor. Normally, it should not be assigned to something else.
Score:0
in flag

Removing the shortcuts (via dconf-editor or ibus-setup) did not work for me.

Setting input-method generally to xim gave me long-lasting inexplicable trouble (in Ubuntu 16, 20, 22...), in particular odd flickering menus in libre office. (I do not entirely grasp the rational reason myself...)

That being said, as VS code seems not to have that problem, @quasímodo's advice worked for me: Just starting code with the respective env variable:

GTK_IM_MODULE=xim code
  1. must be the first instance started (not another already “hanging around”
  2. you may actually kind of verify, you are on the right track: Go to keyboard settings, find Show Explorer, click key-binding to re-define the very same shortcut. If you get previewed ctrl-shift-undefined, you are on the wrong track... (press esc to not actually redefine then)

enter image description here

Score:0
jp flag

posts that indicate this is because of ibus, but I have since completely uninstalled ibus from my system

Yeah, too bad Gnome decided it should also meddle with the already convoluted enough input stack. So you disable Ibus, but GTK decides to mimic it.

The solution is simple, though: Override the GTK_IM_MODULE variable to use the Xim input method (note: this links to my own content in a site that I moderate) when launching Vscod{e,ium}.

es flag
Doesn't work for me in VS Code. `GTK_IM_MODULE=xim code` still has the same behaviour after `pkill ibus`.
es flag
Hm, `snap info code` tells me `installed: 5235c6bb (114) 254MB classic`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.