If you also need to trigger Visual Studio Code for creating a new file into the codebase, in my case Dockerfile, he is the way to do that:
1. Open Visual Studio Code
2. Type ⇧⌘P
3. Type 'Shell command' and choose 'Install code command in PATH'
This simply adds 'code' binary link to the PATH
4. Type the following to initiate a new file:
Deryas-MacBook-Pro:DIGOUT dsezen$ code Dockerfile