Document level
It is on by default, but you can have an extra layer of protection by placing Option Explicit On
at the top of the code file. The option will apply to the whole document.
Project level
You can switch it on via the menu in Visual Studio:
Project > [Project] Properties > Compile Tab > Option Explicit
Choose On
in the drop-down menu. The option will apply to the whole document.
All new projects
You can switch it On by default for all new Projects by selecting:
Tools > Options > Projects and Solutions > VB defaults > Option Explicit
Choose On
in the drop-down menu.