Home Download Buy Blog Forum Support

Word separators and CamelCase

Word separators and CamelCase

Postby SCdF on Wed Feb 29, 2012 8:52 pm


Is it possible to modify the word separators preference:

Code: Select all
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",

Such that it correctly selects individual words inside CamelCase?

For example, if you have FooBarSmang and you double click the first 'a' Sublime would select 'Bar' (currently it would select the whole word). Adding capital letters one after the other doesn't work, because then it won't select the actual capital (in case it would select 'ar' instead of 'Bar').
Posts: 4
Joined: Wed Feb 29, 2012 8:46 pm

Re: Word separators and CamelCase

Postby agibsonsw on Wed Feb 29, 2012 9:53 pm

It is not possible to do this simply with 'word_separators', but it would be possible with a bit of Python..

In the meantime, you can click just before Bar (Foo|BarSmang) and press Alt-Shift-Right to select Bar.

Or press Ctrl-Left to jump to the beginning of the term, press Alt-Right to jump between the words, and Alt-Shift-Right to select the word (or words :) ) you want to select.

"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests