This documentation is archived and is not being maintained.
VB Specific, Basic, Text Editor, Options Dialog Box
Visual Studio .NET 2003
The VB Specific property page, in the Basic folder of the Text Editor folder of the Options (Tools menu) dialog box contains the following properties:
- Automatic insertion of end constructs
- When you type, for example, the first line of a procedure declaration,
Sub Main, and press ENTER, the text editor adds a matching
End Subline. Similarly, if you add a For loop, the text editor adds a matching
Nextstatement. When this option is selected, the code editor automatically adds the end construct.
- Pretty Listing (reformatting) of code
- The text editor reformats your code as appropriate. When this option is selected, the code editor will:
- Align your code to the correct tab position
- Recase keywords, variables, and objects to the correct case
- Add a missing Then to an If...Then statement
- Add parenthesis to function calls
- Add missing end quotes to strings
- Reformat exponential notation
- Reformat dates
- Enter outlining mode on file open
- When you open a file in the code editor, you can view the document in outlining mode. See Outlining and Hiding Code for more information. When this option is selected, the outlining feature is activated when you open a file.
- Automatic insertion of Interface and MustOverride members
- When you commit an implements statement or an inherits statement for a class, the text editor inserts prototypes for the members that have to be implemented or overridden, respectively.
- Show procedure line separators
- Provides visual scope of procedures. A line is drawn in the .vb source files of your project at locations listed in the following table:
Location in .vb Source File Example of Line Location After the close of a block declaration construct
- At the end of a class, structure, module, interface, or enum
- After a property, function, or sub
- Not between the get and set clauses in a property
After a set of single line constructs
- After the import statements, before a type definition in a class file
- After variables declared in a class, before any procedures
After single line declarations (non-block level declarations)
- Following import statements, inherits statements, variable declarations, event declarations, delegate declarations, and DLL declare statements