Home Download Buy Blog Forum Support

[solved ] ctrl-space doesn't complete

[solved ] ctrl-space doesn't complete

Postby greg on Fri Sep 14, 2012 11:51 am

Hello community

I'm trying sublime so my installation is very basic ; however I cannot find out how to have autocomplete working. I think I understand it's "ctrl-space" but for me it does something like "select all" instead.

What am I doing wrong?

TIA

greg
Last edited by greg on Mon Sep 17, 2012 12:21 am, edited 1 time in total.
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: ctrl-space doesn't complete

Postby Marciano on Sun Sep 16, 2012 2:19 pm

If you are on Linux, ctrl+space is not bound to autocomplete. Drove me nuts :-( I think it's because it conflicts with a system keybinding (something having to do with Kanji characters, if I recall correctly). You can add the binding yourself, I guess.
Marciano
 
Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

Re: ctrl-space doesn't complete

Postby greg on Sun Sep 16, 2012 3:06 pm

Thanks for your answer.

How can I bind it myself? I figured out how to bind a command to a key, but what command is autocomplete?

TIA
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: ctrl-space doesn't complete

Postby Glorforidor on Sun Sep 16, 2012 5:14 pm

Hej :)

If you paste this code into you user keybindings, and change "alt+/" to "ctrl+space" then it will do what you want to do :)

{ "keys": ["alt+/"], "command": "auto_complete" },
{ "keys": ["alt+/"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
}

Ps: I don't have any problems with the change under Ubuntu 12.04 :)
Glorforidor
 
Posts: 2
Joined: Sun Sep 16, 2012 5:11 pm

[solved] Re: ctrl-space doesn't complete

Postby greg on Sun Sep 16, 2012 11:53 pm

It's working great! thanks a lot!
greg
 
Posts: 34
Joined: Fri Sep 14, 2012 10:00 am

Re: [solved ] ctrl-space doesn't complete

Postby cameronsteele on Wed Dec 12, 2012 6:16 am

oh my this was driving me mad.
cameronsteele
 
Posts: 1
Joined: Wed Dec 12, 2012 6:16 am


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 16 guests