Change:
Like the title says, when nothing is selected, copying shouldn't copy a blank character.
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?
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 for this?
it is
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

Discussion:
suggestOnTriggerCharacters: toBoolean(opts.suggestOnTriggerCharacters), acceptSuggestionOnEnter: toBoolean(opts.acceptSuggestionOnEnter), snippetSuggestions: opts.snippetSuggestions, <ins> emptySelectionClipboard: opts.emptySelectionClipboard, </ins> tabCompletion: opts.tabCompletion, wordBasedSuggestions: opts.wordBasedSuggestions, suggestFontSize: opts.suggestFontSize,

'default': DefaultConfig.editor.snippetSuggestions, 'description': nls.localize('snippetSuggestions', "Controls whether snippets are shown with other suggestions and how they are sorted.") }, <ins> 'editor.emptySelectionClipboard': { 'type': 'boolean', 'default': DefaultConfig.editor.emptySelectionClipboard, 'description': nls.localize('emptySelectionClipboard', "Controls whether copying without a selection copies the current line.") }, </ins> 'editor.wordBasedSuggestions': { 'type': 'boolean', 'default': DefaultConfig.editor.wordBasedSuggestions,

suggestOnTriggerCharacters: true, acceptSuggestionOnEnter: true, snippetSuggestions: 'bottom', <ins> emptySelectionClipboard: true, </ins> tabCompletion: false, wordBasedSuggestions: true, suggestFontSize: 0,

suggestOnTriggerCharacters: boolean; acceptSuggestionOnEnter: boolean; snippetSuggestions: 'top' | 'bottom' | 'inline' | 'none'; <ins> emptySelectionClipboard: boolean; </ins> tabCompletion: boolean; wordBasedSuggestions: boolean; suggestFontSize: number;

this.suggestOnTriggerCharacters = Boolean(source.suggestOnTriggerCharacters); this.acceptSuggestionOnEnter = Boolean(source.acceptSuggestionOnEnter); this.snippetSuggestions = source.snippetSuggestions; <ins> this.emptySelectionClipboard = source.emptySelectionClipboard; </ins> this.tabCompletion = source.tabCompletion; this.wordBasedSuggestions = source.wordBasedSuggestions; this.suggestFontSize = source.suggestFontSize;

&& this.suggestOnTriggerCharacters === other.suggestOnTriggerCharacters && this.acceptSuggestionOnEnter === other.acceptSuggestionOnEnter && this.snippetSuggestions === other.snippetSuggestions <ins> && this.emptySelectionClipboard === other.emptySelectionClipboard </ins> && this.tabCompletion === other.tabCompletion && this.wordBasedSuggestions === other.wordBasedSuggestions && this.suggestFontSize === other.suggestFontSize

} public run(accessor: ServicesAccessor, editor: editorCommon.ICommonCodeEditor): void { <del> if (!browser.enableEmptySelectionClipboard && editor.getSelection().isEmpty()) { </del> <ins> var enableEmptySelectionClipboard = editor.getConfiguration().contribInfo.emptySelectionClipboard && browser.enableEmptySelectionClipboard; if (!enableEmptySelectionClipboard && editor.getSelection().isEmpty()) { </ins> return; }

*/ snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none'; /** <ins> * Copying without a selection copies the current line. */ emptySelectionClipboard?: boolean; /** </ins> * Enable tab completion. Defaults to 'false' */ tabCompletion?: boolean;

readonly suggestOnTriggerCharacters: boolean; readonly acceptSuggestionOnEnter: boolean; readonly snippetSuggestions: 'top' | 'bottom' | 'inline' | 'none'; <ins> readonly emptySelectionClipboard: boolean; </ins> readonly tabCompletion: boolean; readonly wordBasedSuggestions: boolean; readonly suggestFontSize: number;