Sublime 3: Ctrl-c triggers even if no text is selected, drops text in clipboard

There is a setting in Preferences > Settings - Default which can change the behavior:

// If true, the copy and cut commands will operate on the current line
// when the selection is empty, rather than doing nothing.

"copy_with_empty_selection": false,

Changing it to false should make it so that it doesn't copy an empty selection.


Add this to your User settings:

"copy_with_empty_selection": false

Step-by-Step:

  1. Preferences > Settings
  2. A new window will open with 2 files:

enter image description here

  1. In sublime-settings -- User (the one on the right) paste this:

    "copy_with_empty_selection": false

Why?

If you do it in Default settings it will be overwritten when sublime updates. Any changes you make to settings should be in User Settings.