In Hatch projects I use VSCODE launch configurations property envFile
...
"envFile": "${workspaceRoot}/.env",
...
Then in the .env file add:
PATH="<HATCH ENV PATH>:${PATH}"
Use the command following command to find the path:
hatch env find hatch-test