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?
Asked
Active
Viewed 2,452 times
5
-
This should be the default behaviour when creating a new project. I have created a UserVoice entry for this: https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/10672947-set-option-strict-on-by-default-instead-of-off – Matt Wilko Jul 05 '16 at 11:16
4 Answers
5
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.

Peter Mortensen
- 30,738
- 21
- 105
- 131

Rap
- 6,851
- 3
- 50
- 88
5
Check out Option Strict under menu Tools -> Options -> Projects and Solutions -> VB Defaults:

Peter Mortensen
- 30,738
- 21
- 105
- 131

Bala R
- 107,317
- 23
- 199
- 210
1
In your Visual Studio, go to Tools > Options, open Projects and Solutions, and select VB Defaults.

BP.
- 10,033
- 4
- 34
- 53
0
You can set that in the Visual Studio options, under Projects and Solutions and VB Defaults.

Peter Mortensen
- 30,738
- 21
- 105
- 131

John K.
- 5,426
- 1
- 21
- 20