My windows version is Win 10 1803. I installed Visual studio professional 2017, and along with that I installed SDK 10.0.17134.1 and WDK 10.0.17134.1. I restarted the system, and the visual code, yet the option of creating a Windows driver project under Visual C++ is not showing.
Methods tried: Re-installation of WDK, Rebooting the system, Using same version of WDK and SDK as mentioned in Microsoft site.
This solution worked.
Since the extension that works with Visual studio does not pop-up on its own, manually executing through cmd solves the purpose.