Format Document support for .NET

Posted 7 years ago by Avatar Andre
I noticed in that there is no ITextFormatter implementation in the DotNet implementation of the addon. I assume that is why the FormatDocumentAction is not enabled and I can't click Format Document for my c# code.

I am running build 112 (1 behind the current 113). I did look at GettingStarted12, and saw that there is a SimpleTextFormatter.

Is a CSharpTextFormatter expected to be included sometime in the future (and I suppose one for VB for others)?

I'd rather not try and analyze the SimpleTextFormatter too much and try and figure out what you guys are doing. It seems that the code handles most everything. What scenarios/edge cases does the QuickStart12 SimpleTextFormatter not handle, so I can make a better informed decision on how to proceed?

Essentially, I want to know if more official TextFormatter for CSharp is expected soon. If not, then I'd like to see how much work/testing I need to apply to the SimpleTextFormatter.


Comments (3)

Posted 7 years ago by Andre
I did a little bit of testing with the SimpleTextFormatter. Since it is based on the SimpleTextLanguage in QuickStart03, it needs work.

I believe that to implement a CSharp Text Formatter, we could use SimpleTextFormatter as a base, but then address every token in
Which there is a decent amount.

So, I guess my new question is, will there be an official TextFormatter for CSharp in the addon? if so, soon? if not, is my above analysis on TextFormatters correct?

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Andre,

We do have a text formatter implementation for C#/VB on the TODO list. However at this time I can't yet say when it will be completed. We put several months of work into the .NET add-on and at the moment have stepped back to working on more core SyntaxEditor control features (like parameter info, single line mode, code fragments, etc.). We will also be doing more add-on enhancements, but things like some more IntelliPrompt enhancements may get implemented before a text formatter.

The SimpleTextFormatter is a good base for you to use if you would like to make a temporary one until ours is ready.

Actipro Software Support
Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Andre,

I wanted to let you know that today's WPF and Silverlight controls v2013.1 releases have added text formatting for C# and VB to SyntaxEditor's .NET Languages Add-on. Please see our blog for details:

Actipro Software Support
Information The latest build of this product (2017.2 build 0223) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.