Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent sublime autocompleter popup after semicolon(;) at the end of line

enter image description here

After ;, i.e at the end of each line when I press enter , I get word 'prototype' is added() by the auto completer.I i press shift+enter then acts as normal enter without any autocomplete. added. How can I stop auto-completion after a semi-colon?

and this is the list of packages I have installed.I think its a problem related to some package.

enter image description here

If any of these packages causing problem plz help me out

like image 940
Abhiz Avatar asked Oct 18 '17 06:10

Abhiz


2 Answers

Add this to your settings:

  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc - punctuation.terminator - punctuation.separator"

This will prevent the autocomplete suggestion pop-up from appearing after typing semicolons or other statement terminators, or separators such as commas and colons.

Relevant documentation:

  • https://www.sublimetext.com/docs/completions.html#settings
  • https://www.sublimetext.com/docs/scope_naming.html#punctuation
  • https://www.sublimetext.com/docs/selectors.html
like image 162
Timothy Zorn Avatar answered Nov 20 '22 19:11

Timothy Zorn


For anyone looking, my problem was the package 'SublimeCodeIntel'.

It was adding $('string/element/array/function/jQuery object/string, context') to the end of every line, after typing a semicolon (the autocomplete suggestion was $('#select DOM Element')).

like image 44
Fateh Khalsa Avatar answered Nov 20 '22 19:11

Fateh Khalsa