用于 Visual Studio Code 的 Markdown 支持

所用插件:Markdown All in One,本文是 README.md 的中文版。

此插件包含了用于 Markdown 的所有你需要的功能(键盘快捷键、目录生成、自动预览和更多)。

1. 特性

1.1 键盘快捷键(切换粗体、斜体、code span、划线和标题)
  • 切换粗体
    在这里插入图片描述
  • 选中/取消选中任务列表项
    在这里插入图片描述
1.2 目录生成

在这里插入图片描述

  • TOC 的缩进规则(制表符或空格)将与当前文件相同(请在右下角找到它)
  • 要使 TOCGitHub 兼容,需要将选项 githubCompatibility 设置为 true
  • 使用 <!-- omit in toc --> 忽略 TOC 中的特定标题
1.3 列表编辑
  • Enter
    在这里插入图片描述
  • Enter
    在这里插入图片描述
  • Tab
    在这里插入图片描述
  • Backspace
    在这里插入图片描述
  • 自动修复有序列表标记
    在这里插入图片描述
1.4 打印 Markdown 到 HTML
  • 命令 Markdown: Print current document to HTML
  • 如果您想与他人共享文档,建议使用浏览器(例如 Chrome)将导出的 HTML 打印为 PDF
1.5 GitHub 风味的 Markdown
  • 表格格式化程序
    在这里插入图片描述
    注意,在Linux上,键绑定是 Ctrl + Shift + I
  • 任务列表
1.6 Math

在这里插入图片描述

1.7 自动补全
  • 图片
    在这里插入图片描述
  • Math 函数
    在这里插入图片描述
  • 引用链接
    在这里插入图片描述
1.8 其他
  • 在选定的文本上粘贴链接(非常方便的超链接插入)
    在这里插入图片描述
  • “Toggle Preview” 覆盖 “Open Preview” 键绑定,这意味着您可以使用相同的键绑定( Ctrl + Shift + VCtrl + K V )关闭预览。

2. 可用的命令

  • Markdown: Create Table of Contents
  • Markdown: Update Table of Contents
  • Markdown: Toggle code span
  • Markdown: Print current document to HTML
  • Markdown: Toggle math environment
  • Markdown: Toggle list

3. 快捷键

Table
KeyCommand
Ctrl + B切换粗体
Ctrl + I切换斜体
Ctrl + Shift + ]切换标题 (升级)
Ctrl + Shift + [切换标题 (降级)
Ctrl + M切换 math 环境
Alt + C选中/取消选中任务列表项
Ctrl + Shift + V切换预览
Ctrl + K V切换预览到侧栏

4. 支持的 Settings

Table
NameDefaultDescription
markdown.extension.italic.indicator*使用 *_ 来包括斜体
markdown.extension.list.indentationSizeadaptive对有序列表和无序列表使用不同的缩进大小
markdown.extension.orderedList.autoRenumbertrue编辑时自动修复列表标记
markdown.extension.orderedList.markerordered或者值为 “one”:永远使用 1. 作为有序列表标记
markdown.extension.preview.autoShowPreviewToSidefalse打开 Markdown 文件时自动显示预览。
markdown.extension.print.absoluteImgPathtrue将图像路径转换为绝对路径
markdown.extension.print.imgToBase64false打印到 HTML 时,将图像转换为 base64
markdown.extension.print.onFileSavefalse文件保存时打印到 HTML
markdown.extension.showExplorertrue在资源管理器面板中显示大纲视图
markdown.extension.syntax.decorationstrue向删除线和 code spans 添加装饰
markdown.extension.syntax.plainThemefalse一个免受干扰的主题
markdown.extension.toc.githubCompatibilityfalseGitHub 兼容性
markdown.extension.toc.downcaseLinktrue强制 TOC 链接为小写
markdown.extension.toc.levels1..6控制要在目录中显示的标题级别
markdown.extension.toc.orderedListfalse在目录中使用有序列表
markdown.extension.toc.plaintextfalse只是纯文本
markdown.extension.toc.tabSizeauto控制 TOC 的缩进大小(auto 或 数字)
markdown.extension.toc.unorderedList.marker-在目录中使用 -, *+ (用于无序列表)
markdown.extension.toc.updateOnSavetrue在保存时自动更新目录
markdown.extension.katex.macros{}KaTeX 宏,例如 { "\\name": "expansion", ... }

5. Changelog

请参阅 CHANGELOG 查看更多信息。

6. 最新发布版

点击这里下载。

要安装,在命令面板中( ctrl + shift + p ) 执行 Extensions: Install from VSIX...

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值