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.
Well, place the cursor into the line from where you want to clean it up and then navigate to Edit -> Advanced -> Delete Horizontal White Space or press Ctrl + E , \ . That will automatically remove the additional spaces from your code.
Edit -> Advanced -> untick View White Space.
You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With