code . is not working in on command line for Visual Studio Code on OS X/Mac

If you’re experiencing issues with the “code .” command not working in the command line for Visual Studio Code on OS X/Mac, don’t worry – you’re not alone. This is a common problem that many