Sublime Forum

Select line and words with @


Hi all,

Continually I have problems to select lines and select words with # or @.

With ctrk+d I select all the word:
With ctrk+d I select only “Lorem”

Other problem selecting lines:
With ctrl+l I select line but position cursor remain in the start of: “Incididunt”. it’s possible configurate it to the position cursor remain in the end of the line?.

More detail:

Thanks in advance



This is because the # and @ characters are in the word_separators settings in the preferences; as the name suggests this setting controls the characters that are considered to separate words.

The default value for the setting is:

    // Characters that are considered to separate words
    "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",

If you copy the setting to your user preferences and remove the @ and # characters, they will no longer be considered separators and this should work for you.

I don’t quite understand what you mean by this one, sorry.



Thanks OdatNurd for you reply,

Sorry for my bad question Here I give more detail in the picture



There is no config for that.

I am afraid you have to write your own plugin or complex keybindings if you don’t want \n to be selected while keeping consecutive lines can be selected by repeatedly pressing Ctrl+L.

I remember there is a guy asking this several months ago…

I may have made the problem too complicated. Maybe you just want a command to select a line without selecting the \n. In that case, I think using chained command is a simple way. Or probably a macro since the former plugin is doing kinda the same thing?

    // select the current line without selecting the line ending
    "keys": ["whatever keybinging you like"],
    "command": "chain",
    "args": {
        "commands": [
            [ "expand_selection", { "to": "line" } ],
            [ "move", { "by": "characters", "extend": true, "forward": false } ],


Thanks jfcherng for yoy reply, I will try your solution…