修改settings.json文件中"workbench.editorAssociations"的配置
将原来配置:
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
}
改成:
"workbench.editorAssociations": [ { "viewType": "jupyter-notebook", "filenamePattern": "*.ipynb" } ],
或者
"workbench.editorAssociations": { "*.ipynb": "jupyter.notebook.ipynb" }
注意:Mac中settings.json
文件路径:~/Library/Application Support/Code/User/settings.json