diff --git a/docs/software/conda.md b/docs/software/conda.md index cbbe5d3..65a36ea 100644 --- a/docs/software/conda.md +++ b/docs/software/conda.md @@ -78,7 +78,7 @@ Be aware that specific versions are specified using double `==` with `pip` depen Use the notation `r-{package}` to install R and required R packages within an environment, see the list of packages [here](https://anaconda.org/r/repo?sort=_name&sort_order=asc). Alternatively using [renv](https://rstudio.github.io/renv/articles/renv.html) is **highly recommended** for project reproducibility and portability if you need to install many packages. ## VS Code and conda environments -To ensure VS Code uses for example R and Python installations in conda environments, you can make a file `.vscode/settings.json` in the project folder and write for example: +To ensure VS Code uses for example R and Python installations in conda environments, you can make a file `.vscode/settings.json` in the current project folder and write for example: ```shell { "r.rterm.linux": "${userHome}/.conda/envs/myproject/bin/R", @@ -86,4 +86,7 @@ To ensure VS Code uses for example R and Python installations in conda environme } ``` +You can also place the `settings.json` file at `$HOME/.config/Code/User/settings.json` instead to make the settings apply for **all** projects. If any `.vscode/settings.json` files are present in individual project folders, they will take precedence over `$HOME/.config/Code/User/settings.json`. + Read more details [here](https://code.visualstudio.com/docs/python/environments). +