我使用VSCode编辑Markdown文件,有时我会在文件中添加链接到PowerPoint文件,例如[演示文稿](powerpoint.ppt)
。
现在,我可以使用Ctrl + 单击
在VSCode中打开PowerPoint文件,但是它只显示此文件未在编辑器中显示,因为它要么是二进制文件,要么使用不支持的文本编码...
我希望能够直接在VSCode中预览PPTX文件,或找到一种简单的方式在外部应用程序中打开它。
有什么建议吗?
谢谢
我使用VSCode编辑Markdown文件,有时我会在文件中添加链接到PowerPoint文件,例如[演示文稿](powerpoint.ppt)
。
现在,我可以使用Ctrl + 单击
在VSCode中打开PowerPoint文件,但是它只显示此文件未在编辑器中显示,因为它要么是二进制文件,要么使用不支持的文本编码...
我希望能够直接在VSCode中预览PPTX文件,或找到一种简单的方式在外部应用程序中打开它。
有什么建议吗?
谢谢
settings.json
配置:{
// [...]
"openInExternalApp.openMapper": [
{
// represent file extension name
"extensionName": "pptx",
// the external applications to open the file which extension name is html
"apps": [
// openCommand can be shell command or the complete executable application path
// title will be shown in the drop list if there are several apps
{
"title": "powerpoint",
// This will vary depending on your OS, you can also use a PPT viewer of your chosing
// On Windows, could be Program Files (x86) and a different version of Office, but you get the idea
"openCommand": "C:\\Program Files\\Microsoft Office\\root\\Office16\\powerpnt.exe"
},
]
}
]
}
Mac用户需要更改此行代码。 "openCommand": "/Applications/Microsoft powerpoint.app"