how to vertically allign by char type in code editor? (formatting)

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS
liqih
DASH Guy
Topic Starter
7817 posts since 20 Sep, 2001

Post Sat Jan 28, 2023 9:59 am

Suppose I have this block of code

Code: Select all

|volume|Volume |Master Gain
|vol1|Osc 1|Level
and I want a command in notepad++ or VSC++ IDE
to make it vertically aligned:

Code: Select all

|volume|Volume|Master Gain
|vol1  |Osc 1 |Level
Avoiding to tab manually line by line, is there such a formatting feature in some code editor?
Last edited by liqih on Sun Jan 29, 2023 7:33 am, edited 2 times in total.
http://nusofting.com
plugins: Sinnah Sinmad Echobis and more

User avatar
S0lo
KVRian
1136 posts since 31 Dec, 2008

Post Sat Jan 28, 2023 12:36 pm

In notepad++, [Replace All] | with \t|

Make sure you tick the [Extended] in search mode.

User avatar
mystran
KVRAF
7362 posts since 12 Feb, 2006 from Helsinki, Finland

Post Sun Jan 29, 2023 3:48 am

Seeking asylum in any country willing to acknowledge my right to exist.

liqih
DASH Guy
Topic Starter
7817 posts since 20 Sep, 2001

Post Sun Jan 29, 2023 7:31 am

Thank you both, replacing with \t| works if I take care of blanks (if any) before. Now I will try the other method.
http://nusofting.com
plugins: Sinnah Sinmad Echobis and more

Return to “DSP and Plugin Development”