转载自:https://www.jianshu.com/p/21f905fc7e19
我的默认终端是powershell,创建文件时会报以下错误
![](http://upload-images.jianshu.io/upload_images/19548824-2c8051c339c17eac.png?imageMogr2/auto-orient/strip|imageView2/2/w/698/format/webp)
解决方法法:切换默认终端为cmd
1.ctrl+shift+p打开命令面板,输入select ,选中Terminal:Select Default Shell
![](http://upload-images.jianshu.io/upload_images/19548824-840fc9356e4c0b6c.png?imageMogr2/auto-orient/strip|imageView2/2/w/599/format/webp)
2.选中你想切换的,重新打开控制台(完成)
![](http://upload-images.jianshu.io/upload_images/19548824-e9899a96f818d461.png?imageMogr2/auto-orient/strip|imageView2/2/w/610/format/webp)
作者:雪_07a2
链接:https://www.jianshu.com/p/21f905fc7e19
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。