Mac uses zsh vscode and the default version of terminal node is inconsistent (nvm node version management tool)

I'm thinking of using a newer version of node. Playing with ts, I found an interesting phenomenon that my vs and my terminal node version are inconsistent

Because I am using nvm for management,
then I know that I have switched to a relatively stable version of nvm alias default 16.13.0

Later, I found that my vs version was always at 12.11.0,
and then I turned over some forum documents at home and abroad, but I couldn't find a more suitable one to deal with my problem. All kinds of fancy operations and configurations are invalid.

The default version of my terminal keeps the latest version I set up but vs just won't keep it in sync

It was later discovered. If you just click the cross to close it, is it automatically updated? You must close the entire vscode to synchronize with the terminal

Right-click to exit vacode and re-enter every time it is the latest setting. It's a
insert image description here
small pit. This is so bad hahaha

Guess you like

Origin blog.csdn.net/yunchong_zhao/article/details/123773244