
Open Visual Code and press Command + Shift + P then type “Shell” in command palette now you are able to find this option like Shell Command : Install code in PATH from suggested list in command palette. Select that options. That’s it.
Now open your terminal type:
code . |