Gebe
Gebe

Reputation: 141

How to disable Auto Complete in Sublime Text (2&3)

enter image description here I understand there are a few questions surrounding the auto_complete function in Sublime Text.

However, I have not been able to disable the auto_complete function in the Sublime Text settings (I've tried both Sublime Text 2&3). I just get the "Error trying to parse settings: Unexpected trailing characters in Packages/User/Preferences.sublime-settings:5:1" error when inputting the {"auto_complete": false,} command in user settings.

Would love to turn off the setting, but can't find a way to. Any help much appreciated!

enter image description here

Upvotes: 14

Views: 16401

Answers (7)

sails44
sails44

Reputation: 264

After about 10 tries, I arrived at this. I was stopping the tab completion but the space bar also does it. SO ANNOYING!!!! Just be a good text editor sublime :)

{
    "tab_completion": false,
    "translate_tabs_to_spaces": false,
    "detect_indentation": false,
    "auto_complete": false,
    "auto_indent": false,
    "auto_complete_commit_on_tab": false,
    "auto_match_enabled": false,
    "word_wrap": "false",
    "spell_check": false
}

Upvotes: 2

eli
eli

Reputation: 9228

There are two options:

1: In Preference --> User, Check if TernJS plugin is Installed. If Yes, Unistall it from your editor (i.e. Sublime Text Editor).

2: In Preferences --> User, check for the auto_complete and change it to false

"auto_complete": false,

Restart Your Editor(Sublime Text)

Upvotes: 5

tklodd
tklodd

Reputation: 1080

This is the first result that pops up when Googling "Sublime Text disable autocomplete", and none of the answers answered my question completely, so I'd just like to add to the existing answers that if you are setting auto_complete to false and still having problems with Sublime Text auto-closing parentheses and brackets, then you also need to set auto_match_enabled to false. This should solve the problem. So as a whole, here is what I have:

{
    "auto_complete": false,
    "auto_complete_commit_on_tab": false,
    "auto_close_tags":false,
    "auto_match_enabled": false
}

Upvotes: 5

snips
snips

Reputation: 21

I came here looking for a Python-related solution, where autocompletion worked well for variable names etc. but was quite slow for methods etc.

So, to disable Python syntax autocomplete:

  • open the command palette with ctrl + shift + P
  • enter Package Control: Remove Package and select it
  • enter Jedi and remove the Jedi autocomplete package

Upvotes: 0

hudspace
hudspace

Reputation: 69

My solution to this problem was to change "auto_complete_commit_on_tab" from true to false. This way you aren't turning off autocomplete altogether, but the autocompletion is ignored unless you hit the tab key.

In preferences, user settings, add:

{
"auto_complete_commit_on_tab": false
}

Upvotes: 2

Danny Hong
Danny Hong

Reputation: 1482

This should be the option.

{
    "auto_close_tags":false
}

Upvotes: 2

Amitoj Singh Ahuja
Amitoj Singh Ahuja

Reputation: 413

Put , after font-size:17 like:

{
  "font_size":17, //note a comma here after 17
  "auto_complete": false,    
}

Upvotes: 9

Related Questions