Add a setting to enable autocomplete in text editor. Close #45