Visual Basic Defaults, Projects, Options Dialog Box
Specifies the default settings for Visual Basic project options. When a new project is created, the specified option statements will be added to the project header in the Code Editor. The options apply to all Visual Basic projects.
To access this dialog box, on the Tools menu, click Options, expand the Projects and Solutions folder, and then click VB Defaults.
Sets the compiler default so that explicit declarations of variables are required. By default, Option Explicit is set to On. For more information, see /optionexplicit.
Sets the compiler default so that explicit narrowing conversions are required and late binding is not allowed. By default, Option Strict is set to Off. For more information, see /optionstrict.
Sets the compiler default for string comparisons: binary (case-sensitive) or text (case-insensitive.) By default, Option Compare is set to Binary. For more information, see /optioncompare.
Sets the compiler default for local type inference. By default, Option Infer is set to On for newly created projects and to Off for migrated projects created in earlier versions of Visual Basic. For more information, see /optioninfer.
Send feedback about: