首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >powerpoint在VSCode中的预览

powerpoint在VSCode中的预览
EN

Stack Overflow用户
提问于 2022-03-03 15:08:32
回答 1查看 1.3K关注 0票数 5

我使用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文件,或者找到一种在外部应用程序中打开它的简单方法。

有什么建议吗?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2022-08-11 06:30:36

AFAIK您不能在VSCode中直接打开这些文件,但是可以使用打开外部应用程序这样的扩展名在另一个应用程序中打开它们(您可以通过vscode中的扩展名搜索找到扩展名)。

安装后,您可以更新您的settings.json配置:

代码语言:javascript
运行
复制
{ 
 // [...]
"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"
                },
            ]
        }
    ]
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71339383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档