# How to adjust tab completion in Sublime Text 2

Is there a way to "complete completion within completion"? Example:

Completions:

'fra' => '\frac{$1}{$0}'
'bf' => '\mathbf{\$0}'


I do fra<tab>bf<tab> and want to have \frac{\mathbf{***}}{}, not \frac{bf}{***} where *** is the cursor.

-
Pressing Escape between the first and second tab would be a possible workaround to cancel the first completion's chain of insert locations. –  Daniel Beck Apr 24 '13 at 20:01
–  Daniel Beck Apr 24 '13 at 20:03
@DanielBeck: That unfortunately conflicts with exiting the insert mode in Vintage. –  mreq Apr 24 '13 at 20:06
Open up the default key binding file and search for clear_fields. This is the command that cancels the chain of fields in snippets. Just bind that to any key combination (and use the same context) in your user key bindings file. –  Daniel Beck Apr 24 '13 at 20:19
Alternatively, bind next_field to a different key combination and press that instead. The Tab key is really overloaded... –  Daniel Beck Apr 24 '13 at 20:32

At least part of the answer is setting "auto_complete_with_fields": true in your settings file.