c# - Use Visual Studio DLL to format a .cs file -


i'd build executable takes in input piece of c# code , reformat visual studio do.

for reformat mean following definition: "reformatting affects braces layout, blank lines, line wrapping , line breaks, spaces in various contexts, indentation, aligning multiple constructs, , lot more options can fine-tune"

is possible use visual studio public api or directly .net framework reformat piece of code? or know other framework offers functionality?

i don't think visual studio provides public api such tasks can try open source code formatted narrange


Comments