You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2020. It is now read-only.
This is the problem code.
I want to change Space Indent to Tab Indent.
// use Bridge.NRefactory.5.5.4usingSystem;usingICSharpCode.NRefactory.CSharp;usingICSharpCode.NRefactory.Editor;namespaceFoo{classMainClass{publicstaticvoidMain(string[]args){varpolicy=FormattingOptionsFactory.CreateMono();varformatter=newCSharpFormatter(policy);formatter.TextEditorOptions.TabsToSpaces=false;vartext=@"namespace Foo{ public class Bar { public void MethodA() { Promise.All ( MethodB(), MethodC(), () => {} ); } }}";vardocument=newStringBuilderDocument(text);varsyntaxTree=SyntaxTree.Parse(document,document.FileName);varchanges=formatter.AnalyzeFormatting(document,syntaxTree);changes.ApplyChanges();Console.WriteLine(document.Text.Replace('\t','>'));Console.ReadLine();}}}