Vs code terminal: 'haxe' is not recognized as an internal or external command, operable program or batch file

So I get that error trying to build project. When I build with cmd prompt its all fine but Id prefer to do that from vs code. Any clue why haxe command inst recgonized in vs code cmd terminal?

Are you on Mac? If so, try to start vscode from terminal.
I think OSX has different environments for apps started from GUI and from terminal.