For this to work, `code` command should be in the system path. If it isn't, you can add it to path by following these steps:
1. Launch VS Code
2. Open up command palette (press Command + Shift + P) and type `Install 'code' command in PATH command`
3. Click on the command.
4. Restart terminal