Code Window



Smart Indenting



Intellisense

Intellisense lets you write code quickly by providing information and word completion as you type.
It is also useful for identifying and showing you problems with your code.
For example if you cannot see an object that you would expect to see in the List Members list then maybe you have mistyped something.

Intellisense features include:
     ● list members
     ● parameter info
     ● quick info
     ● complete word
code snippets (?)

List Members

Lets you explore all the members of an object without having to use the Object Model
You can access the information directly in the Code Editor as you are typing
When you type the name of a type or namespace followed by a period (.) a list of available members will be displayed.
This is similar to the List Properties/Methods in VBA
You can insert an item from the list by double clicking the member or pressing Tab or Enter.
A tooltip known as "Quick Info" is also displayed on the right which contains a description of the member

Notice that there are two tabs at the bottom of the list.
The Common tab displays only the most common members
The All tab displays all the members. This is the one you want displayed.

Parameter Info

When you type the name of a property or method and then type an open parenthesis ("(") a list of parameters including which ones are optional is displayed.
Any optional parameters are displayed in square brackets ("[ ]") and can be excluded

Microsoft Office Intellisense

If you want to have the same intillisense (with additional summary descriptions) for all your PIAs then there is an additional Intellisense XML file which can be installed
This is called "Visual Studio Tools for Developers XML files"
This can be downloaded from microsoft.com
Without this download you will still get list members and parameter info but you will not see the "Quick Info" on the right hand side.

VSTO ships with XML files that enable intellsense for the VSTO specific object model for Excel and Word.
However if you want to have the benefits of an enhanced Intellisense feature for the Outlook object model (or the interop object models for Excel and Word) you should install the Intellisense XML files that are available for download on the Microsoft website
In the Download Center search for "Intellisense" and select "Microsoft Intellisense XML files for Microsoft Visual Studio Tools for Office System Solution Developers
This is the file "VSTOIntellisenseXML.msi


Quick Info

Not available in VBA
When you hold the mouse over an identifier Visual Studio displays a quick info tip
This shows the declaration of the identifier
Every time the cursor is moved the tool tip will update accordingly.

Complete Word

Not available in VBA
When you start typing a word you can press (Alt + right arrow) or (Ctrl + spacebar) for the word to be automatically completed for you
If there are several choices then a drop-down of possible words is displayed
The editor also supports auto-completion of keywords and enumerations

Most of these options are on by default but they can be controlled from the Options dialog box
(Text Editor > All Languages > General)
(Text Editor > Basic > General)



Find and Replace

This is not actually a dialog box but a tool window
It can be docked by right clicking on its menu bar and selecting "Dockable"
You can now drag it and dock it accordingly.


Find all References




Quick Find

(Ctrl + F)
Doesn't always find everything.
SS including Options expanded
defaults to "match whole word"



Find in Files

(Ctrl + Shift + F)




Quick Replace




Replace in Files


Outlining

By default all text is displayed in the Code Editor.
It is possible to select a region of code and make it collapsable so it appears under a plus sign (+).
You can then hide or expand the region depending on whether you want to view it or not.


Cutting, Copying and Pasting code retains the outlining information.
If you copy a region that is collapsed, it will be pasted as an expanded region.


(Edit > Outlining)
Code Window Shortcut menu



Toggle Outlining Expansion - Reverses the current hidden or expanded state of the innermost outlining section in which the cursor lies when you are in a nested collapsed section. (Ctrl + M)(Ctrl + M).
Toggle All Outlining -
Stop Outlining - Removes all outlining information from the entire file (Ctrl + M)(Ctrl + P)
Collapse to Definitions - (Ctrl + M)(Ctrl + O).
Start Automatic Outlining -


Hide Selection - (C# only) Available when Automatic Outlining is turned off or Stop Outlining is selected. Collapses the currently selected text.
Stop Hiding Current - (C# only) Available when Automatic Outlining is turned off or Stop Outlining is selected. Removes the outlining information for the currently selected user defined region.
Collapse Block - (C++ only)
Collapse All - (C# only)
Collapse Comment - Appears at the top of the Code Window Shortcut Menu.


(Ctrl + M, P) - to expand all #regions
(Ctrl + M, O) - to collapse all #regions
(Edit > Outlining > Toggle All Outlining)


#region something 
#endregion


© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext