Make visual studio code open automatically R conda virtual environment every time
I use visual studio code on a windows computer.
I follow instructions by https://docs.anaconda.com/working-with-conda/packages/using-r-language/ to create an R virtual environment. The environment works well. However, every time I want to run R code I will have to open cmd terminal and write conda activate ENVNAME
. Is there a way such that, in visual studio code, every time I open the terminal in the same folder it will always give the virtual environment I set last time? I am looking for things similar to Python Select Interpreter
but for R.