This page contains a brief presentation illustrating the main features CodeSMART 2009 for VS.NET adds to VS.NET 2002, VS.NET 2003, Visual Studio 2005 and Visual Studio 2008.
1. CodeSMART Integration with The Visual Studio 2008, 2005 And Older IDEs
1.1. General Integration Notes
CodeSMART is tightly integrated with Visual Studio - all its commands and tools are accessible through the main menu (1) and four toolbars (2)
it adds to the environment. Other CodeSMART 2009 tools are hosted or display their results within special tool windows - for example, pictured below are (3) the CodeSMART 'Code Explorer' and (4) the CodeSMART 'Find and Replace' tool windows.
2. Structured Navigation with The CodeSMART Explorer Tools
2.1. The Code Explorer
The CodeSMART Code Explorer is a code navigation and management tool that integrates features from both the standard Solution Explorer and the standard Class
View. Its main design goal was to help the developer locate code as quickly as possible. For a solution and its projects it displays a single hierarchical view with
files, folders, classes, methods etc.
The CodeSMART Code Explorer supports filtering, searching and view customization; moreover, it displays other useful code elements like regions, bookmarks, code
flow nodes etc.
XAML files are completely detailed in the Code Explorer window in two distinct node categories, one containing the specific XAML tag hierarchy and
the other the code-behind file content. The XAML tag node appearance can be easily configured to show specific information like: the tag type, the Name and Content (or
similar) attribute values, or other composite information.
A complex set of commands is available for every element type displayed by the Code Explorer through the node associated context menu.
The Navigation Helper Panes (History, Node Search and Workbench) were especially designed to help the user focus on a limited number of components
and code elements.
- The History pane allows the user to keep in sight the last visited Code Explorer nodes or the last edited code elements (persistent between sessions).
- The Node Search pane allows you to quickly search (with partial search strings) for project item or code element nodes through the entire Code Explorer tree.
- The Workbench pane persists shortcuts to various elements (entire components, designer windows, code documents or code elements) on a per-project basis.
2.2. The Code Flow Explorer
The Visual Studio code editor doesn't have tools to assist the developer in navigating inside a method body. When working with fairly simple methods browsing their
code inside the code window is usually enough to grasp a general idea about the code logic, but trying to navigate complex methods with hundreds of code lines, nested conditional
blocks and loops, can be a very tedious job.
The CodeSMART Code Flow Explorer can parse method code and output a tree representation thus offering instant access to the method's internal
structure and logical code blocks.
2.3. The Designer Explorer
With the CodeSMART Designer Explorer you can visualize a designer control hierarchy, select a control (which normally is not an easy job controls
when controls overlap, are included in containers or simply are out of the visibility window) and benefit of several additional control-related operations and enhancements.
2.4. Code Library Explorer
The CodeSMART Code Library Explorer represents a convenient way to quickly store and retrieve code pieces written in VB, C#, C++, HTML, XML etc, thus providing a valuable
help in reusing, managing and sharing prewritten code. It can be seen as a code repository in which you can store and organize different code items, group them
in logical folders and share them within a team.
3. How To Locate Code with The CodeSMART Find Tools
3.1. Extended Find and Replace
The Extended Find and Replace subsystem adds powerful search and replace capabilities to the Visual Studio environment. It can perform code searches and replacements at
any scope (member, document, project, solution) with a set of user-defined filters. The search target can consist of a single code line or of multiple lines
and can contain wildcards or regular expressions. After the operation finishes, a comprehensive result list is displayed and matches are highlighted
in code.
Two Extended Find and Replace panes hold result lists for two different find/replace operations. Results found within strings and comments (if
these were not configured to be skipped) are displayed by using specific colors. Additionally, a history combobox can be used to access previous find/replace operations.
3.2. Find References
In the process of code writing as well as when analyzing prewritten code, knowing all the points where a certain code element is referenced can be extremely useful.
There may be many purposes for such a task, like planning a refactoring, generally trying to understand a certain functionality, etc. The CodeSMART Find References tool
can start from various code elements and output their list of references (works with both Visual Basic and C# projects).
4. Refine Your VS.NET Projects with The CodeSMART Analyzer Tools
4.1. Code Analyzer
The CodeSMART Code Analyzer is a valuable tool that can be used to examine Visual Basic and C# code. It can be seen as a control quality tool for
Visual Studio programmers who want to refine the code they write by making it smaller, faster and less error-prone. Code Analyzer features include detecting private dead
code, code complexity issues, potential problems, optimization flaws and coding standards infringements.
4.2. Designer Analyzer
The CodeSMART Designer Analyzer can be used to examine Windows Forms components for known problems. It can be seen both as a UI quality
control tool and as a UI standards enforcement tool. Several options are available and grouped by problem categories.
The analysis result set is listed in a comprehensive window.
4.3. Spelling Checker
What can be more embarrassing than delivering an application and realizing you have spelling errors in its user interface? Let's face it, we all felt bad because of this at least
once in our lives. We did it too - so we decided it's the time to have a Spelling Checker feature in CodeSMART.
4.4. Strings Review
The Strings Review tool does somehow share part of its goals with the spelling checker. Its exact purpose is to offer a global and complete perspective on all
the string constants used in code, but while the spelling checker focuses on individual words correctness, this new tool was designed to ease the phase of logical word
combination (phrasing) analysis and correction.
5. The CodeSMART Automated Text Entry (Or How To Write Code Blazingly Fast)
5.1. AutoText
Many times during the process of code writing you have probably used identical or similar code blocks, or written the same long code sequence over and over.
In such cases, an auto-text feature like the one found in many professional text editors could have saved you a lot of time. Typing a few letters and then hitting a special
keyboard combination is obviously much more productive than writing the same code piece again and again. This is what the CodeSMART AutoText system was built for; here's
a sample of this system in action:
5.2. SmartComplete
The CodeSMART SmartComplete brings an Intellisense-like list with specific language keywords, statements and global functions and user-defined items which
are missing from the Visual Studio standard Intellisense list (in VS.NET 2002/2003 works for VB/C#/C++, while in Visual Studio 2005/2008 only works for VB).
Here are two examples on how SmartComplete works:
| Example 1 | ||
![]() |
Private | |
| Example 2 | ||
![]() |
WithEvents | |
5.3. AutoBrackets
The CodeSMART AutoBrackets feature is a simple yet very useful tool that eases code writing by auto-completing the closing character in standard character pairs (parentheses,
square brackets, braces and quotes).
Here's a sample:
![]() |
5.4. The Extended Clipboard
CodeSMART extends the standard Clipboard with 10 additional copy-and-paste persistent buffers. These buffers can be filled with any piece of text and their contents
can be pasted into any Visual Studio code window by using an extremely simple shortcut key system.
6. Tedious Coding Tasks Simplified By The CodeSMART Code Generating Tools
6.1. Simple Code Builders
These represent a set of wizards for creating basic code constructs like class definitions, methods, properties and indexers.
6.2. Advanced Code Builders
Advanced Code Builders represent a set of tools which can be used to insert complex code constructs into Visual Basic and C# projects. By using these tools you can
considerably reduce the time and effort that's usually necessary to write certain code like interface implementations, overridden methods, object construction
and destruction, custom exception classes, custom formatter classes, collection classes, etc.
6.3. Generate Exception Handling Code
Adopting an appropriate strategy for exception management can help you build successful and flexible applications that can be easily maintained and debugged. However, implementing a proper and consistent exception handling policy is not a trivial task - this is where the CodeSMART Exception Handling Tools come into play, as by using these tools you can:
- define your own exception handling templates enriched with CodeSMART standard parameters.
- designate a default template to be used for a specific programming language.
- share the same templates within a development team.
- explicitly mark different methods, properties and classes to use a specific exception handling template
- automatically insert and remove exception handling code at different levels (current selection, method, class, document, project, solution).
7. Source Code Perfectly Formatted and Documented with The CodeSMART Code Maintenace Tools
As projects become more and more complex, adhering to certain standards usually becomes a necessity. These standards may include specifications and recommendations on how
code should be formatted and documented. CodeSMART has dedicated tools that can help you meet such requirements.
7.1. Code Formatter
The CodeSMART Code Formatter can be used to reshape Visual Basic and C# code based on certain standards. These standards can be specific to a single programmer or can
be used for an entire programming team.
7.2. Sort Procedures
Occasionally you may consider it necessary to rearrange code in a more logical and intelligible manner. The CodeSMART Sort Procedures tool comes to meet this requirement.
7.3. XML Comments
XML documentation (XML comments), are a mix of XML and comments used to document code. CodeSMART not only extends support for XML comments to Visual Basic developers
(VS.NET 2002/2003) but also offers an unified and flexible way to standardize this powerful feature in both Visual Basic and C# through the XML Comment Templates (avalable
in all versions of Visual Studio).
7.4. XML Comments Preview
The XML Comments Preview tool provides an easy way to vizualize pre-formatted XML comments when editing or browsing code.
7.5. Regular Comments
Comments standardization is a must for every company, and adoption of such a standard by a single user is an extremely intelligent decision that will definitely show its benefits
in time. Regular Comment Templates are intended to complement the XML Comment Templates feature described above; also, CodeSMART can ease commenting tasks by automating
the regular comment skeleton insertion process.
7.6. Code Commenting Analyzer
No matter if you write simple functions or complex classes, using relevant comments as often as possible is a requirement that every application developer should conform
to. The CodeSMART Code Commenting Analyzer tool can help in getting a global perspective on code commenting at a certain scope by indicating in-method contiguous blocks
of code that exceed a certain maximum length and have no comments, as well as code definitions that either have no comment defined or have an incorrect
one from a standards point of view.
8. Perfect Windows Forms UI Implementations with The CodeSMART Designer Tools
8.1. Tab Order Designer
Configuring/reconfiguring tab order on a Windows Forms designer by managing each control's TabIndex property value can be a very tedious task. The CodeSMART Tab
Order Designer tool can help you automate this process - you can either set the order manually by simply sorting the control list or you can let the tool automatically establish
the tab order.
8.2. Hotkey Designer
The CodeSMART Hotkey Designer allows you to automatically manage hotkeys on a designer. The tool provides several hotkey generation methods along with the possibility
to preserve (lock) some already defined hotkeys.
8.3. Property Tips
The Property Tips lists a preset group of properties and their values in a special window that is displayed as a tooltip whenever the user pauses the mouse
cursor over a designer control.
8.4. Designer Assistant (only for VS.NET 2002/2003)
These tools are intended to ease working with controls while in designer mode. They offer a simple and quick way to identify a control, modify its size and position by
using the keyboard in predefined fine or fast modes.
9. And There Are Even More CodeSMART Tools...
9.1. AutoSave and AutoBackup (only for VS.NET 2002/2003)
CodeSMART offers the possibility to automate two mechanisms that can prove indispensable in application development: saving your work and creating backup copies.
9.2. Code Statistics
The CodeSMART Code Statistics subsystem provides useful information about code at various scopes ranging from component up to the entire solution.
9.3. Iterative Code
There are times during the coding process when the need to insert similar pieces of code in every method at a certain scope arise. For example, imagine your program generates
a GPF. Probably having the possibility to trace code execution and see which is the last method that gets called before the GPF occurs could help. However, manually inserting tracing
code into each method may take quite a long time. CodeSMART features an Iterative Code inserter/remover subsystem - by using it you will be able to insert and afterwards
remove special code chunks at a certain scope in just a few seconds.









