Posted 11 years ago by David Homer - CEO, CENTREL Solutions
Version: 12.1.0303
Avatar

Hi,

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.

 

Thanks,

 

Dave

Comments (1)

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

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 (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.