- From windows terminal hit Ctrl+, to open settings pane. I normally use the json file.
- Default Profile: Add pwsh profile as you default one
pwshand use command
This will open up the profile startup script
Add the following to the profile startup script.
$vsInstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Community" Import-Module "$vsInstallPath/Common7/Tools/Microsoft.VisualStudio.DevShell.dll" Enter-VsDevShell -VsInstallPath $vsInstallPath -SkipAutomaticLocation -StartInPath "C:\Dev"
StartInPathparameter is for my local folder where I normally checkout code. Note: This is specific to VS 2022. May need changing as per VS installation.
Hope this was useful and saves you some time. Please do share your learnings. If you have any thoughts or comments please do get in touch with me on twitter @rubberduckdev. Or use the Disqus plugin below.