17 Ocak 2014 Cuma

Sublime Text 2 , CTRL + SPACE AUTO COMPLETION PROBLEM

Hello,
I installed Sublime Text 2 in Windows. After i was watching some tutorials about sublime , i understood that was amazing.. It was useful and lightweight. However, I decided to install it in ubuntu . I installed it , but when i wrote div.foo and pressed ctrl+space, nothing was happening. It shoulded complete it automatically to <div class="foo"></div> Then i searched on google to solve that problem.. Eventually , i found the solution . All you have to do go to Preferences > Key Bindings - User and add this code block;
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "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 }
]
}
You can do it in Sublime Text 3 too.