Sublime Forum

Don't copy when no text is highlighted

#1

I’ve been using Sublime for a while now and I like it a lot. My one gripe is that when I’m copying and pasting, if I accidentally hit ctrl+c again instead of ctrl+v, then the clipboard gets cleared. There should be a check to see whether any text is selected, and only copy when the length > 0. This is how other editors seem to work.

Apologies if there is a setting for this, but I haven’t been able to find it. Using Linux version.

1 Like

#2

Set the following in your user preferences.

// 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": true,

2 Likes

#3

Thanks!

0 Likes