Select vertical column, uneven word endings

private int custid = -1;
private string partnumber = "";
private string description = "";

When editing source code, Is it possible to do a sort of SHIFT + ALT + LEFT CLICK, such that the vertical selection happens across all second spaces in a series of lines?  I don't think VS 2017 Community supports macro recording?  Or Visual Studio, period ... not for many years now, right?

For example, for the first line of code above, imagine the text cursor is blinking **just** after the " t " in "int".  This is the end of the second word on that line, or said another way, it is just before the second space.

To select the same spot for the second and third lines would select just after the " g " in the word "string" on those lines.

Then a few tabs would result in the following:

private int                               custid = -1;
private string                          partnumber = "";
private string                          description = "";

Then I could go back to the beginning of that THIRD column, do a normal SHIFT + ALT + LEFT CLICK from the " c " in custid down to the " d " in description, and add a character (say, an underscore) at the beginning of all of those variable names, like so:

private int                               _custid = -1;
private string                          _partnumber = "";
private string                          _description = "";



Possible?

Open to a RegEx solution for my search and replace, but preference is some sort of keyboard command.

NOTE:  I found "Tabify" under the Edit - Advanced menu ----- it does not seem to work at all?  It seems to be what I want, but not available in C# text editor?
LVL 5
Tom KnowltonWeb developerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shaun VermaakTechnical SpecialistCommented:
Tabify replaces four spaces with a Tab.

You can try shortcut CTRL+ALT+] with ProductivityPowerTools installed
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProductivityPowerPack2017
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom KnowltonWeb developerAuthor Commented:
I wish I could give you 500,000 points.  This was precisely what I needed.

Many many thanks!

Tom
0
Tom KnowltonWeb developerAuthor Commented:
Oh, and thank you for the clarification on "Tabify" - noted!!!!

Tom
0
Shaun VermaakTechnical SpecialistCommented:
Anytime, glad it solved it :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.