VScode .md .tex .docx 文件预览插件推荐

1.Markdown

bierner.markdown-mermaid

支持 mermaid
不会占用文件,方便cursor聊天

2.Latex PDF

James-Yu.latex-workshop

不会占用PDF文件,方便cursor聊天


mac安装教程

    "latex-workshop.latex.recipes": [
    {
        "name": "xelatex",
        "tools": [
        "xelatex"
        ]
    },
    {
        "name": "xe*2",
        "tools": [
        "xelatex",
        "xelatex"
        ]
    },
    {
        "name": "xelatex -> bibtex -> xelatex*2",
        "tools": [
        "xelatex",
        "bibtex",
        "xelatex",
        "xelatex"
        ]
    }
    ],
    "latex-workshop.latex.tools": [
    {
        "name": "latexmk",
        "command": "latexmk",
        "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "-pdf",
        "%DOC%"
        ]
    },
    {
        "name": "xelatex",
        "command": "xelatex",
        "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
        ]
    },
    {
        "name": "bibtex",
        "command": "bibtex",
        "args": [
        "%DOCFILE%"
        ]
    }
    ],
    "latex-workshop.view.pdf.viewer": "tab",

编译自动跳转教程

    "latex-workshop.synctex.afterBuild.enabled": true,
    "latex-workshop.latex.autoBuild.run": "onSave",

双向跳转教程


3.Office

cweijan.vscode-office

不推荐用来编辑 .md .pdf ,会占用文件,不方便cursor聊天。
参考官方README写的配置,使VScode用前两个插件打开.md .pdf ,供参考

"workbench.editorAssociations": {
    "*.md": "default",
    "*.markdown": "default",
    "*.pdf":"latex-workshop-pdf-hook"
}

TODO:

7 个赞

感谢大佬!

1 个赞

感谢大帅哥捧场!

被引用了 :xhs_015:

1 个赞

这个office套件就是我要找的,经常被全角半角符号所苦恼,试试能不能解决

VSCode文件插件眼

此话题已在最后回复的 30 天后被自动关闭。不再允许新回复。