When a user pastes a value when multiple lines are selected in SelectionType.Block, the value is only inserted at the cursor. Is there a way to instead insert the text on each selected line?
A user wants to, for example, quickly qualify several SQL fields and could do so by selecting the space before each field in block mode and simply pasting the schema qualifier before all at once.
Thanks!
I assume we’re referring to version 10 of Alternet.Studio.
When the application is built using .NET 9, there’s currently an issue with block selection paste due to changes in BinaryFormatter
. If you switch to .NET 8, it should work as expected. We plan to address this issue in one of the upcoming builds.
Please let me know if switching to .NET 8 resolves the problem.
I’ll post an update here once the new build with the fix is available.
So sorry - I should have included all of that.
The application is an older one using Alternet Studio v 9.5 built on .NET 4.8
Let me know if that changes potential workarounds!
Now I understand. In Visual Studio, when text is selected in block mode and copied to the clipboard, pasting it while another block selection exists causes the text to be duplicated—it’s inserted into each line of the selection.
We’ve created an issue #1049 for this support request, and I’ll send you an update here once the feature is implemented.
Thank you.
And to be clear, the original text does not need to be selected in block mode.
For example, the user copies the word ‘HELLO’.
The user selects the space before each of these 4 rows (the pipe indicates the selection):
| world
| world
| world
| world
When the user then pastes, the text becomes:
HELLO world
HELLO world
HELLO world
HELLO world
I assume that we’re on the same page, but wanted to be explicit.
Thanks again!