Jake O
Jake O

Reputation: 159

How do I remove a completion in Sublime Text 2

How do I remove a completion from Sublime Text 2?

Specifically, in a Ruby file, after the num symbol #, hitting tab autocompletes to # =>.

I don't need this completion, and it's really annoying when trying to write comments. How do I remove it?

Upvotes: 3

Views: 525

Answers (2)

awenkhh
awenkhh

Reputation: 6131

Assuming that you run SublimeText2 on Mac go to Preferences > Browse Packages. In the folder Packages find the Folder Ruby. In Ruby find the file Add-'#-=-'-Marker.sublime-snippet and manipulate it.

But I strongly recommend to put the changes in a user file. I think this is Preferences > Settings - More > Syntax Specific - User

See: http://www.sublimetext.com/docs/2/settings.html

Upvotes: 3

enrico.bacis
enrico.bacis

Reputation: 31534

It's a snippet installed by default with the Ruby package.

In order to disable it:

  1. Open Sublime Text 2.

  2. Select Preferences -> Browse Packages...

  3. It will open a directory, open the directory Ruby

  4. Rename the file Add-'#-=-'-Marker.sublime-snippet in Add-'#-=-'-Marker.sublime-snippet.old

Upvotes: 4

Related Questions