In Sublime Text, I keep experiencing accidental multiple cursors, which destroys my code

StackOverflow https://stackoverflow.com/questions/16311588

  •  13-04-2022
  •  | 
  •  

Question

I'm using Windows and trying to use Sublime Text, because all the cool kids say it is awesome and I had been using Homesite from 2003. I have a habit of leaning on the control key when I'm cutting and pasting with a mouse, and this inevitably results in unwanted multiple cursors when editing code in Sublime. I frequently end up typing something in multiple places when it is only wanted in one. I am wondering if there is some way to disable CTRL-left-mouse in Sublime Text. Otherwise I will have to return to Homesite.

Was it helpful?

Solution

Create sublime-text-2/Packages/User/Default (Windows).sublime-mousemap and drop in the following code to disable CTRL-Left click. You can also assign it to a different command if you want.

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

Replace Windows with Linux or OSX according to your platform.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top