Copy/paste multiple selections to one cardet
PSonneveld opened this issue · 6 comments
Installed product versions
- Visual Studio: 2017 CE
- This extension: 1.2.17
Description
Pasting multiple selections to one cardet only paste the last selection.
(I do not have the "copy as html" plugin installed)
Steps to recreate
Given this text
DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");
- select the word DataGrid
- press ctrl-d multiple times to select all occurances (or other shortcut)
- press ctrl + right three times to more the cursor to the first letter of dataset name
- press shift-ctrl-right to select the names
- press ctrl-c to copy to clipboard
- click somewhere in the file so only one cardet is left
- paste
Current behavior
Currently it only paste the last selection and loses the rest
DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");
Data3
Expected behavior
I expected to have all values pasted (like in other editors, e.g. atom, sublime)
DataGrid.CreateDataSet("Data1");
DataGrid.CreateDataSet("Data2");
DataGrid.CreateDataSet("Data3");
Data1
Data2
Data3
Hi and thanks for reporting. I have added this on the dev-branch to be tested. I think it works good but if you have time to check it, please try this CI build
@PSonneveld I updated the extension on the VS Gallery with this ability. Closing this, if it doesnt work as expected please write me a comment
Thanks for looking into it and for this awesome extension. I wasn't able to test it properly since I was working on another machine.
So I installed visual studio 2017 on my work machine and installed the latest version of the plugin (1.2.23). When I follow the case above it gives me an error.
however the file it mentions is not present.
I encountered more bugs with clipboard, but I can't reproduce it yet
*tried this with test.js file but also with test.cs file. got the same error.
@Goesenroos Thanks for reporting
The log file is only written if you run VS with the /log parameter unfortunately. Couldn't reproduce this yet myself. If you find a way to reproduce any of it, the log would be much appreciated.
Closing this for now, can’t reproduce any errors. @Goesenroos re-open this if you can reproduce or get me a log, thanks