How to disable multiple cursors in sublime2?

How to disable the multiple cursor function in Sublime text 2? I googled, but found only a video on how to use it, and not how not to use it ..

+8
sublimetext2
source share
3 answers

If you have multiple cursors, just press ESC to return to one.


@starwed - how did you accidentally turn it on?

  • Open your settings / layout and
  • find split_selection_into_lines , find_under_expand and find_under_expand_skip (these are the main methods for including multiple cursors)
  • then assign a key combination that you are unlikely to press accidentally.
+7
source share

in your configuration Preferences -> Settings - User add the line "multi_select": false
At the end, your config should look like this:

 { "color_scheme": "Packages/Color Scheme - Default/railscasts.tmTheme", "detect_indentation": false, "font_face": "Droid Sans Mono", "font_size": 14, "ignored_packages": [ "Vintage" ], "scroll_past_end": false, "tab_size": 2, "run_on_save": true, "save_on_focus_lost": true, "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true, "word_wrap": true, "multi_select": false } 

I was looking for how to disable this function myself ... I didn’t find anything, and just thought I had to play with config ... on Linux it worked!

+2
source share

According to this link on an elevated forum, you cannot directly, but you can disable the keys that start it.

ctrl-shift-l (el) and ctrl-left click

To disable ctrl-shift-l, I don’t know if this is possible in the user file (keymap / bindings file in the user directory), but you can in the default binding file (keymap / bindings file in the default directory) .. or delete line, or rewriting it, for example, adding + u preferences..packages

C:\Users\user\AppData\Roaming\Sublime Text 2\Packages\Default\Default (Windows).sublime-keymap

Change this line by adding + u so that it works ctrl + shift + l + u, not ctrl + shift + l. I doubt that you accidentally do ctrl + shift + l + u, or at least not as often as you could accidentally do ctrl + shift + l!

 { "keys": ["ctrl+shift+l+u"], "command": "split_selection_into_lines" }, 

Also, to disable the ctrl-left click, this link suggests doing this, and I tried and it works. (although I like the function and the binding!)

Settings .. view packages..User C:\Users\user\AppData\Roaming\Sublime Text 2\Packages\user

Create this file there in the form Default (<your OS>).sublime-mousemap Default (Windows) .sublime-mousemap

it corresponds to a file with the same name in the default directory. but located in the user directory and takes precedence, overwriting the settings in the default directory.

(settings in the user directory will take precedence and settings in the default folder will be overwritten) C:\Users\user\AppData\Roaming\Sublime Text 2\Packages\Default (Windows).sublime-mousemap )

So, in C:\Users\user\AppData\Roaming\Sublime Text 2\Packages\user\Default (Windows).sublime-mousemap

paste

 [ { "button": "button1", "count": 1, "modifiers": ["ctrl"], "press_command": "drag_select" } ] 

which disables the ctrl-left click trigger for multiple selection.

Note. I use ctrl and left click, and I don’t remember if I accidentally called it, but maybe your finger sometimes touches the touchpad (making a left click) when you press Ctrl.

+2
source share

All Articles