Not sure about specifying environment, but to specify configuration you can use
vs code command palette -> ".NET: Select a Configuration..."
VS code will reopen after changing that, and then the specified configuration should be used when launching tests from the TESTING side bar