Turn off autocomplete in Sublime REPL in Sublime Text 2
Asked Answered
J

3

6

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

Jessiajessica answered 5/6, 2014 at 15:26 Comment(0)
G
7

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
    },
Gentlewoman answered 5/6, 2014 at 15:39 Comment(2)
I'm trying this and there is no way to make it work. I tried both in the user settings and the package settings and the super aggressive autocomplete is still on. Can it be some other package that's doing this or only the Sublime REPL acts in the iPython shell?Ingemar
@jbssm: Remember that iPython has its own autocomplete. You can turn this off by editing server_autocomplete in this file on your SublimeREPL install.Neely
S
0

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.

Scrappy answered 8/11, 2015 at 9:21 Comment(0)
A
0

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
}
Ardatharde answered 31/7 at 2:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.