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

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

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 3:33 pm, edited 2 times in total.

Post

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

Make sure you tick the [Extended] in search mode.
www.solostuff.net
Advice is heavy. So don’t send it like a mountain.

Post


Post

Thank you both, replacing with \t| works if I take care of blanks (if any) before. Now I will try the other method.

Post Reply

Return to “DSP and Plugin Development”