After adding condabin and anaconda scripts to my path, conda was working fine in ps but not in vs code terminal (ps). I ran
conda update conda
in terminal (not vs terminal) and restarted the vs. Problem solved with vscode.