DEV Community

Discussion on: Thunder Client - Lightweight Rest API Client Extension for VS Code

Collapse
 
indrajeetgour profile image
Indrajeet Gour

Thanks @Ranga for the excellent tool.

I wanted to know how one can use the different same variables like a token for different environments as postman does, I tried making dev folder and added the token and used the same in the request but feels like it is not able to resolve that.

Please help with this, let me know if I am making some mistakes.

Collapse
 
ranga_vadhineni profile image
Ranga Vadhineni • Edited

Hi Indrajeet,

Create a environment in Env Tab and add variables, then you can use those variables using format {{variable}} in any request.

Collapse
 
indrajeetgour profile image
Indrajeet Gour • Edited

Yes, you are right I could able to use them as {{variable}} but how about if we have multiple environments to pick, Postman offers the drop-down for environment selection.

I got it now you have enabled the "set default" in the env option section. That's all I need. 🙏🏻

Thank you a ton again for this tool.