Vscode: Add an option to prevent copying an empty selection

Created on 29 Aug 2016  路  7Comments  路  Source: microsoft/vscode

Like the title says, when nothing is selected, copying shouldn't copy a blank character.

editor editor-core feature-request good first issue

Most helpful comment

@soljohnston777 it is editor.emptySelectionClipboard

All 7 comments

@alexandrudima @ivancuric
As of now, cmd+c without any selection, copies the entire line. Sublime also does the same.
Are we suggesting to change this behavior as part of this issue? I really like the current functionality.
Or are we suggesting one more option/flag which user can enable to have the new functionality?

@ramamurthynagaraj Yes, it would be behind an option

Can we have the option for this behavior or disable it? I don't like the auto copy of a blank line and would like to disable that feature. I agree it can be annoying especially in the type of coding I do (debugging).

Was a setting added for this?

@soljohnston777 it is editor.emptySelectionClipboard

"editor.emptySelectionClipboard": false disables the line copying entirely. Is there a way to have line copying enabled, while simultaneously ignoring the empty lines?

This doesn't disable the copying within my VS Code at all and I can still copy whitespace - anyone else had any luck? * fingers crossed *

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryan-wong picture ryan-wong  路  3Comments

chrisdias picture chrisdias  路  3Comments

curtw picture curtw  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

sirius1024 picture sirius1024  路  3Comments