Q:

Mac OSX code . command does not work

First of all happy new year to all, I am trying to set Visual Studio Code to start from terminal and using the instructions from VS Code site but editing ~/.bash_profile or ~/.profile file with following command does not work out.
function code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*; }

So what could be the problem?
Thank you in advance,

A:

You need to refresh your bash_profile after making changes. 
. ~/.bash_profile

