Vscode: Investigate what Shift+Insert should do by default on Linux

Created on 20 Feb 2020  路  11Comments  路  Source: microsoft/vscode

With #36170, we have changed Shift+Insert on linux to paste from the selection clipboard. There are a lot of complaints following this change - #90929, #90297, #90637, #90716

This issue is a plan item to investigate what do other well established Linux code editors do by default and then see what is expected.

fyi @Tyriar

bug linux verified

Most helpful comment

I have also tried some GUI applications on Ubuntu, including the default Text Editor and can confirm that Shift+Insert is pasting from the "clipboard" clipboard, not from the selection clipboard, so I will change Shift+Insert to basically work as Ctrl+V by default (like it was before 1.42). It will still be possible to get that Shift+Insert pastes from the selection clipboard by using:

{
    "key": "shift+insert",
    "command": "editor.action.selectionClipboardPaste",
    "when": "textInputFocus && config.editor.selectionClipboard"
}

All 11 comments

The list of editors that I currently use that work the way I expect:
Eclipse
Intellij
Word
Libre Office
Google docs
Notepad
Leaf
Chrome's search bar :)
gmail's editor
Even the gnome terminal's Find field.
Any text field in any app that I've ever used.

The only 'editors' that I know of that don't support the default
shift-insert are
vi
terminal.

With the exception of the obvious windows apps I use all of these editors under ubuntu gnome.

@alexdima Actually the question should be: what is Shift-Insert used for most often - for Insert or Replace?

And keep in mind that for several years of using VS Code users have acquired certain automatic editing skills that are difficult to change. For this reason it is always wiser to provide a new style of Copy/Paste operations as an additional option rather as the default mode.

I would also add to @vlad-vinogradov that it isn't just VS Code, it is pretty much all editors I have used that support Shift+Insert the same way that VS Code used to. @alexdima I can appreciate the thought behind what was done but the difference is that when working on the command line you never want to replace text, just paste it. In an editor I expect to be able to highlight a block of text, press Shift+Insert, and have that block replaced with whatever I copied using Ctrl+Insert (or Ctrl+C).

@vlad-vinogradov This is an issue of what clipboard is used when pasting with shift+ins it has nothing to do with insert vs replace.

It seems that the users claiming 'true' linux uses shift + ins to paste from selection keyboard are correct. However it does seem like most of us, even long-time linux users, are used to the non-linux style which is more prevalent on today's guis. It would probably be best to have the shift+ins binding off by default and those that are used to the 'correct' linux way can just enable the binding.

@foxsam21 We are all "true" VS Code users here.
Until recently, the use of Shift-Insert in VS Code was the equivalent of Ctrl-V. So each of us used the keys combination more convenient for him personally - and it is already hardcoded in "muscle firmware". Earlier those who use Shift-Insert could select a certain text fragment with the keyboard and replace it with the Clipboard contents. Now in default mode this operation cannot be performed using Shift-Insert - you need to change what has already turned into a reflex. To restore previous mode of operation 1) you need to guess that something has changed in VS Code and not just the keyboard is malfunctioning, and 2) you need to take some unobvious steps to reconfigure VS Code. This is what causes inconvenience to users.

We are all "true" VS Code users here.

I am talking about "true" _linux_ users. The ones that are used to using two clipboards.

I wonder if the real point of difference here is gui vs console.

The gnome gui and all gui applications define shift-ins to be the same as ctrl-v.

I'm not surprised that the console works differently but I am surprised when a gui app works differently.

I also consider current version of VSCode with the altered behavior completely broken to the point of affecting my productivity. I've been using shift-insert as paste from the 90's and this works in pretty much any other editor also on linux. If i want to replace text, i first select the text i want to replace and then use shift-insert to replace it.

@unitysipu are you aware of how you can revert the change ?

Yeah, thanks. I'm just annoyed I had to waste time on this.
As a multi-OS user I value consistency in the behavior of multi-platform tools.

I have also tried some GUI applications on Ubuntu, including the default Text Editor and can confirm that Shift+Insert is pasting from the "clipboard" clipboard, not from the selection clipboard, so I will change Shift+Insert to basically work as Ctrl+V by default (like it was before 1.42). It will still be possible to get that Shift+Insert pastes from the selection clipboard by using:

{
    "key": "shift+insert",
    "command": "editor.action.selectionClipboardPaste",
    "when": "textInputFocus && config.editor.selectionClipboard"
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

curtw picture curtw  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

sirius1024 picture sirius1024  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments