Dirk Calloway
Dirk Calloway

Reputation: 2619

Turn off autocomplete in Sublime REPL in Sublime Text 2

When I type in the Sublime Repl console (Python) and hit return to run the command I am getting super annoying autocomplete taking over and changing the command.

How do I turn this off in the SublimeRepl console?

Thanks

Upvotes: 6

Views: 2709

Answers (3)

Daniel
Daniel

Reputation: 583

I have the same intent: getting rid of auto-complete in the SublimeREPL, in particular when using pdb. Nothing mentionned here works: I can disable auto-complete elsewhere, but not in SublimeREPL, which for some reason is always on. The need for auto-complete in REPL is very different from the auto-complete when typing text.

However, the reason it is annoying in the debugger is that typing 'c' or 'n' will trigger autocomplete instead of 'continue' or 'next', and typing enter will confirm it. You get "class blablabla" instead of the actual 'continue' or 'next' that you would want. I have found that changing auto-complete to commit on tab instead of enter is actually helpful because the use of the debugger becomes much more natural: you type 'c'+enter and it works.

Committing on tab also feels a bit more thoughtful. I noticed it very quickly that committing on Enter is a bit too "aggressive".

In Preferences.sublime-settings

{
"auto_complete_commit_on_tab": true
}

Upvotes: 0

Andrew
Andrew

Reputation: 1

I don't know if this is an exact answer to your question, but it might help - and it showed up in my search results for disabling auto complete in Sublime Text. There are more options you can change besides just "auto_complete"; for instance, I found this:

// Automatically close HTML and XML tags when </ is entered.
"auto_close_tags": true,

Also, check your installed packages for anything that will auto complete.

Upvotes: 0

AGS
AGS

Reputation: 14498

Look for, and edit, the following in the SublimeRepl .sublime-settings file. Preferably, add the "auto_complete": false to your SublimeRepl user settings.

"repl_view_settings": {
        "translate_tabs_to_spaces": false,
        "auto_indent": true,
        "smart_indent": true,
        "spell_check": false,
        "indent_subsequent_lines": false,
        "detect_indentation": false,
        "auto_complete": true,
        "line_numbers": true,
        "gutter": true
    },

Upvotes: 7

Related Questions