Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2: How do I turn off auto-insert of {} during Ruby string interpolation?

When typing inside double-quotes in a Ruby file, Sublime automatically adds {} as soon as you type a #. This is a huge hassle and confuses the bejeezus out of me. How do I make it stop?

like image 748
Max Cantor Avatar asked Apr 17 '14 16:04

Max Cantor


2 Answers

Apparently the auto_match_enabled setting controls this behavior, and not the visual underline behavior, which is in fact controlled by the match_brackets setting.

like image 177
Max Cantor Avatar answered Sep 25 '22 06:09

Max Cantor


In your /Packages/Ruby directory there is Default.sublime-keymap file which contains a small snippet that inserts the pair or curly brackets after # is pressed within an string that can be interpolated, ie double quotes. Just comment this out to solve your problem.

like image 42
AGS Avatar answered Sep 26 '22 06:09

AGS