N
N
niosus2014-02-26 22:42:29
Code editor
niosus, 2014-02-26 22:42:29

How to implement autocomplete on the tab button in Sublime Text?

Good day!
The topic does not quite correspond to the question, but I did not know how to formulate it better.
The problem is this. I would like to combine the functionality on click табand внизautocompletion in Sublime Text.
What I mean. When the auto-completion window opens, the first item is selected in it. If you press the button вниз, then we will move through this list, but in the editor itself the word will not be substituted yet. On the contrary, if we press the button таб, the window closes immediately, and when we press it again, we will run through all the options that were on the list, while they are substituted directly into the place where we write the text ...
I want everything to be done exactly because on the buttonтаб, but only at the same time so that the window does not close and the current version is shown in it.
Does anyone have any ideas how this can be done? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
exdeniz, 2014-03-01
@exdeniz

// When enabled, pressing tab will insert the best matching completion.
    // When disabled, tab will only trigger snippets or insert a tab.
    // Shift+tab can be used to insert an explicit tab when tab_completion is
    // enabled.
    "tab_completion": true,

    // By default, auto complete will commit the current completion on enter.
    // This setting can be used to make it complete on tab instead.
    // Completing on tab is generally a superior option, as it removes
    // ambiguity between committing the completion and inserting a newline.
    "auto_complete_commit_on_tab":  true,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question