Read more

Ubuntu: Make Ctrl-Space work in RubyMine, Emacs, or other tools

Arne Hartherz
May 06, 2015Software engineer at makandra GmbH

I was annoyed that RubyMine's autocompletion did not work via Ctrl+Space for me. In fact, it did not work in any application.

Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

Turns out that keyboard combination was hijacked by Ubuntu as it's the default for switching input languages (i.e. keyboard layouts). If you use only 1 language/layout, you will not notice except for the key not working.

To fix it, do the following:

  1. Run ibus-setup (e.g. from a terminal). This will open a GUI dialog.
  2. In the 1st tab you should see "Next Input Method" followed by "<Control>space".
  3. Click the "..." button on the right of it, and change it. I changed mine to "<Control><Shift><Super>space".
  4. Click the "Apply" button, and then the "OK" button.
  5. You may now close the iBus settings application.

Ctrl+Space should now work for you.

Posted by Arne Hartherz to makandra dev (2015-05-06 15:08)