algorithm - How to write a general source/text formatter in C# ? (Ideas) -
the question how solve problem. how source/text formatters work ? how write source/text formatter text accepts sufficient settings , works accepted.
eg. new line after { , indent next line.
how can format source codes works different languages ? there algorithm ? settings should consider ?
i need ideas @ first because source/text formatters language specific c# specific solution acceptable !
you can @ roslyn github , see how works c# , vb:
https://github.com/dotnet/roslyn
then roslyn should able write own formatter.
Comments
Post a Comment