提升vscode的markdown书写体验

提升vscode的markdown书写体验

markdown写做起来十分的方便, 展现效果也很优雅. 主推一下vscode这个程序员利器.git

为何选择vscode?

原生支持

做为一个代码编辑器, 原生支持markdown显示. 只须要 command(ctrl)+shift+p, 输入 Markdown Priview to the side , 就能够预览.程序员

img

能够定制化的预览样式

能够自由地导入markdown展现样式, 也能够经过 Markdown Theme Kit 这样的插件来快速更改修改风格. 这里推荐一款 Markdown Preview Github Styling 插件, 能够将预览模式变成github的样式github

img

拥有快速格式化工具

推荐一下 markdown-formatter 插件, 能够快速格式化代码.json

例如这样的内容bash

img

按一下command+shift+f 就能够快速格式化为markdown

img

是否是很方便?(标题并无被删掉, 只是没截下来)iview

支持快捷输入

img

enter之后, 生成表格编辑器

img

也能够插入代码ide

img

img

支持LaTex语法

安装 Markdown+Math 插件, 就能够愉快预览LaTex数学公式了, 此处 艾特 掘金官方, 他们的文档也支持LaTex哦工具

这样的代码

$ f(x, y) = \frac{x^2}{y^3} $
复制代码

在掘金里

f(x, y) = \frac{x^2}{y^3}

本地预览截图

img

更多功能

在Setting.json中能够进行更多设置来开启更多功能

img

img

例如能够针对markdown设置保存自动格式化,显示空白字符等等

"[markdown]": {
  // 保存自动格式化
  "editor.formatOnSave": true,
  // 显示空白字符
  "editor.renderWhitespace": "all",
  // 快速补全
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "editor.snippetSuggestions": "top",
  "editor.tabCompletion": "on",
  "editor.acceptSuggestionOnEnter": "on"
}
复制代码

文中插件

插件名 做用 测试版本
Markdown Theme Kit 支持自定义markdown预览样式 0.1.4
Markdown Preview Github Styling 以github风格预览markdown 0.1.6
markdown-formatter 支持格式化和快捷输入 0.4.0
Markdown+Math 支持LaTex数学公式 2.3.9

好的, 本期节目到这里就结束了, 喜欢的观众请点个关注, 并长按视频下方的大拇指一键三连支持下up主.

拜托啦这对我真的很重要.

相关文章
相关标签/搜索