In visual studio code, if you press ctrl + c on a blank line, with nothing highlighted, it copies the blank line.
I thought there may was an option to disable this, but haven't been able to find it.
You should be able to do this by configuring the option editor.emptySelectionClipboard
to false
.
There is an extension for it: https://marketplace.visualstudio.com/items?itemName=usernamehw.do-not-copy-empty
editor.emptySelectionClipboard: true
works, but not when the vim extension is enabled :-(