I have two projects with different version of node, which are managed with nvm:
- Project 1: node v6.10.4
- Project 2: node v8.9.4
On each project's root folder there is a file .nvmrc with its node version. When I open the integrated terminal on VS Code the default node version is selected (other than the previous two) and I need to type $ nvm use
to change to the correct version of node each project uses. Is there a way to execute automatically $ nvm use
after terminal opens, or another way to achieve my objective? Sometimes I open the terminal and forget to execute the command.
I'm using Ubuntu 16.04, VS Code 1.20.1 and nvm 0.33.8.
Thanks.