Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text remove python new property autocomplete

I love sublime text. I know that I can disable autocomplete altogether in the settings, however I just want to disable one of the autocomplete options.

When you type an @property decorator in python you get an autocomplete option called New Property which if selected generates a getter and setter for you. This ends up being more of a pain than a benefit for me. Any ideas about how to remove that autocomplete option?

like image 714
Adrian Adkison Avatar asked Dec 10 '14 23:12

Adrian Adkison


People also ask

Does Sublime Text have autocomplete for Python?

By default, Sublime Text will automatically show the completions popup when a user is editing source code or markup, but not within prose in comments, strings or markups. Pressing the Esc key will hide the completions popup. To manually show the completions popup, press Ctrl+Space.

Does Sublime have intellisense?

You can add the auto-complete Intellisense feature for Kony UI, API, and SDK functions while working with Sublime Text from Visualizer. You must install the Ternjs for Sublime package to enable this feature.


1 Answers

Sublime Text 2

You can remove Packages/Python/New-Property.sublime-snippet. The Packages directory location depends on the system you are using:

  • Windows: %APPDATA%\Sublime Text 2\Packages
  • Linux: ~/.config/sublime-text-2/Packages
  • OS X: ~/Library/Application Support/Sublime Text 2/Packages

Sublime Text 3

The structure is a little different in Sublime Text 3. Personally I don't use it yet, but this might give you some idea about how to achieve the same result in ST3.

By the way, these solutions are not ideal. When you reinstall or upgrade Sublime Text the snippet will be back. But I'm not aware of any way to disable snippet via user config.

like image 150
Bohuslav Burghardt Avatar answered Nov 15 '22 06:11

Bohuslav Burghardt