Quantcast
Channel: Microsoft "Roslyn" CTP forum
Viewing all articles
Browse latest Browse all 504

CTP to RTM upgrade - How to use formatter

$
0
0

Hi,

In CTP version, I used to write below code to save the changes to file with the formatting. Any idea what is changed in RTM?

 IEnumerable<IFormattingRule> rules =  FormattingRules.GetDefaultRules("C#");
                File.WriteAllText(
                    filePath,
                    modifiedTree.Format(FormattingOptions.GetDefaultOptions(), rules).GetFormattedRoot().ToFullString());


Viewing all articles
Browse latest Browse all 504

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>