Posted 7 years ago by David Homer
Version: 12.1.0303


Is it possible to detect syntax errors such as the following?

int NumberOfItems = "cat";

Also is it possible to configure it to sort out whitespaces

string YourName                =                                             "David";

When you press the semicolon key in Visual Studio it automatically sorts out the formatting of the line.





Comments (1)

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

Hi Dave,

The first request is a compiler error, not a syntax error because technically, the syntax is fine.  We don't have a compiler phase but you could tack one onto the end of the parse phase if you have a C# compiler available that can report errors.

Sorry but we don't format the line in scenarios like that.  You can create code yourself that will do so though by watching for ";" to be typed and looking for such a scenario.

Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 12 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.