Is there a shortcut in Visual Studio to make the cursor positions become aligned by adding whitespace? - visual-studio-2019

I'm looking for a way to more easily multi line edit in Visual Studio 2019. This is the explanation of why I would want to get what the title asks.
Take the following code:
columns.Add(o => o.Compañia).Titled(SeguridadLabels.a).Css(AlignGridCss.Center);
columns.Add(o => o.Cobertura).Titled(SeguridadLabels.bc).Css(AlignGridCss.Center);
columns.Add(o => o.Familia).Titled(SeguridadLabels.def).Css(AlignGridCss.Center);
If I want to multi line select Compañia, Cobertura, and Familia, but do it with Shit + Alt + Down Arrow, and then do Ctrl + Shift + Right arrow  what is selected instead is:
Compañi
Cobertu
Familia
Or if I keep going
Compañia)
Cobertura
Familia).
Ctrl + W does now work either, so the solution is painstakingly doing Ctrl + Alt + Click on each line, and then Ctrl + Shift + Right Arrow would select the intended text.
Here is the catch: I want to insert said text replacing what is after SeguridadLabels.
Just trying to straight paste it, does not work. It breaks everything.
The only way I have found to do it is:
1: Paste the text somewhere else empty
2: Remove the whitespaces this added
3: Copy it again, but using Shift + Alt + Down Arrow and then Ctrl + Shift + Right Arrow
4: Creating again the cursors with Ctrl + Alt + Click
5: Select the text to replace with Ctrl + Shift + Right Arrow
6: Delete it
7: Manually align each line closing with whitespace (this can be done adding whitespace on the left of each .Titled line)
8: Paste
This whole orchestra of shortcuts is preferable than editing line by line when I have a whole stack of similar stuff, but manually aligning stuff takes too much, specially if each cursor must be manually created with the mouse.
Is there a better method to the madness?
I know i could just get better at regex and use the find and replace functionality, but is it really necessary?
Thank you for the help.

Related

How to represent a truly blank cell in google sheets which is also recognized when pressing ctrl + down?

I would like my if statement to give out a truly blank cell in case false so I can stop at the last non-blank cell when I press ctrl + down. I did Google it but still didn't work. It did pass the isblank() test but when I press ctrl + down, these cells also get skipped along with the non-blank cells and I end up at the last cell in the column. Here is the sample formula =if((A1>B1), "yes",). I've tried referencing a blank cell and that also passes the isblank() test but still is not recognized by ctrl + (direction). This is gonna be part of an Autohotkey script where I am basically gonna copy the resulting column by first selecting it with ctrl + shift + down. But as I mentioned, this takes me to the end of the column as Google sheets doesn't consider it fully blank or untouched. Even a workaround would also suffice. I just want to get those cells where the if statement was true in the clipboard. This is my time posting here so apologies if I broke any rules. Thanks!

How can I change the shortcut CTRL + ALT + D (Duplicate Line) from Cnpack plugin?

It there a way to change the "Duplicate line" shortcut from the CnPack plugin?
Original:
CTRL + Alt + D
I want it to change to:
CTRL + Shift + D
To edit this option you just need to do a right click somewhere in the IDE editor to show up the editor context menu. There navigate to the entry CnPack Editor Menu to open its sub menu. There navigate to Others to open the submenu, too, and finally click on Options....
In the following dialog window you can select (if not already) the line containing "Duplicate" to then click on the below edit field next to "Shortcut", where you finally can press Ctrl + Shift + D. Close the dialog window with a click on Ok and you're done.

How to copy and duplicate a Drawing with a Script attached

I created a drawing and added a script to it in a Google Sheet tab. My sheet has 20 tabs. How can I copy and paste or otherwise duplicate the Drawing with its script onto each of the other 19 tabs?
that is kind of unachievable at this age. best you can do is:
enter drawing mode of your drawing
select it
copy it with CTRL + C
then go to Sheet2
insert new drawing
press CTRL + v
then go to Sheet3
insert new drawing
press CTRL + v
etc... 17x
and then assign your script function to every drwing on every sheet

What is this sort of book in the Delphi IDE?

Today I've came accross this kind of book (or maybe a chipset? lol) standing at a if condition on my code.
What exactly does it represent?
It's a Bookmark.
You can set bookmark two-ways :
CTRL + SHIFT + 1-9 sets up bookmark,
CTRL + 1-9 Goes to bookmark
or
Right click on the left side of editor and set up/go to / delete bookmark.
It's convenient to jump to another, marked parts of code.
Regards

Delphi IDE shortcut for splitting a long string

I'm using Delphi XE2. I have a really long string (580 characters) pasted into the IDE. I want to split the string so that it stays within the right margins and has the proper closing tick mark and plus sign. Is there a keyboard shortcut that will do that?
The shift + Enter shortcut allows me to do if I am typing the string but it doesn't split a string that is already on the screen.
Delphi XE2 has the ability to record Macros and play them back in your source editor. The controls are in the bottom-left, play, record, and stop.
If not already, move your string down to the next line (as in my screenshot)
Start with your cursor at the beginning of the string, after the '
Press the Record Macro button (Red circle)
Press the Right keyboard arrow key up to 2 chars before desired width
Type ' to terminate the string
Type + to continue on the next line
Press Enter to insert a line break
Type ' to begin a new string
By now you should be 1 position directly underneath where you started
Press the Stop Recording Macro button (Green square)
Press the Playback Macro button (Green triangle)
Continue pressing play until all is complete
SHIFT+ENTER only works like you want when the cursor is at the end of a line with an unclosed string literal. There is no shortcut to split a literal (with quotes and spacing) when the cursor is at the beginning or middle of it. You will have to find a third-party editor add-on that formats long string literals the way you want.
You can press "CTRL+D".... and configure it in Tools->Options->Formatter

Resources