我使用vscode来编辑标记文件,有时我有到powerpoint文件(如[presentation](powerpoint.ppt)
)的链接。
我现在可以用Ctrl+Click
在VScode中打开powerpoint文件,但是它只显示了the file is not displayed in the editor because it is either a binary or use unsupported text encoding...
我希望能够在vscode中直接预览pptx文件,或者找到一种在外部应用程序中打开它的简单方法。
有什么建议吗?
谢谢
发布于 2022-08-11 06:30:36
AFAIK您不能在VSCode中直接打开这些文件,但是可以使用打开外部应用程序这样的扩展名在另一个应用程序中打开它们(您可以通过vscode中的扩展名搜索找到扩展名)。
安装后,您可以更新您的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"
},
]
}
]
}
https://stackoverflow.com/questions/71339383
复制相似问题