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 has been 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();}}}
The text was updated successfully, but these errors were encountered:
kyubuns
changed the title
Format bug when TextEditorOptions.TabsToSpaces is false
Format issue when TextEditorOptions.TabsToSpaces is false
Oct 28, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is the problem code.
I want to change Space Indent to Tab Indent.
Output
(Replace Tab to ">" for github)
Why does Line 8 have white space indent?
The text was updated successfully, but these errors were encountered: