SmartComplete Overview
One of the most appreciated features of the Visual Basic Intellisense
subsystem is its ability to display a pop-up list with all the
names (variables, objects, methods, etc) that are available in the current context.
There are times however when you might want to see other helpful suggestions
in the Intellisense list - for example Visual Basic language
keywords. And why not be able to include even custom items?
The CodeSMART SmartComplete subsystem provides this missing brick on the Visual
Basic foundation. It will display an Intellisense-like list whenever it has something to
suggest, and the suggestion it makes is based on Visual Basic keywords, statements,
custom (user-defined) SmartComplete items and AutoText items.
To display the SmartComplete list simply type a few letters in code (at least two).
If it has at least one suggestion, the SmartComplete list window will open, containing all
the items whose names start with the typed letters and also match the current
code context. Additionally, the SmartComplete subsystem will search and (if found)
include as the first element in the list the AutoText item whose alias string is identical
with the typed letters.
As keyboard combinations that can be used to validate the selection, you don't have to learn
a different system: like in the Intellisense list, any Space, Enter, Tab, Ctrl+Space, Ctrl+Enter,
dot, comma and other separators can be used to close the window while inserting the current
element. Hitting the Esc key will close the SmartComplete list without altering the code.
Here are two examples on how SmartComplete works:
| Example 1 |
|
|
Private
|
| Example 2 |
|
|
WithEvents
|
See also
Back To Top
|