Search code examples
vb.netoption-strict

Option Strict on by default in VB.NET


Whenever I created a new VB.NET program I must go into the project's properties and set 'Option strict' on. Can I do that once so it is a default for every time I create a new project?


Solution

  • In Visual Studio, go menu Tools -> Options -> Projects and Solutions -> VB defaults -> Option Strict. Set it to "On".

    Every time you create a new project, it will have Option Strict On by default.