The upcoming version of SmartInspect will, of course, support the new Borland Developer Studio 2006 (Delphi and C# personalities for now). We received our copy of BDS on Tuesday and immediately started to port the SmartInspect Delphi library. As expected, the needed efforts were minimal and we had it all working within a few hours (including adjusting the installation program and build system etc.).
Besides the actual ported library for BDS 2006, the next SmartInspect release will include a lot of cool live templates for both the Delphi language and C#. Live templates are a powerful way to automatically or manually insert code snippets for you. See this posting for a good introduction to this topic. SmartInspect live template support ranges from simple messages, warnings, errors to more complex expressions like Enter-/LeaveMethod combinations (including try/finally statements). Let’s have a look at the following example:

You just need to enter “sim” in the code editor, press the tab button and BDS will then replace it with the following code template snippet:

And the SmartInspect live templates can do even more. After inserting the actual template code, you can use tab and shift+tab to navigate between the method arguments. The nice thing is that these parameters are fully synchronized. This means, if you change the method name argument of the EnterMethod call, the same value will automatically and simultaneously be written to the LeaveMethod method call.
We intend to provide live templates for the most frequently used method calls, like LogMessage, LogWarning, LogException, Enter-/LeaveMethod, LogSeparator and so on. Currently we have around 20 live templates for each language.

Recent Comments