VSCode Markdown插件

Markdown All in One

All you need for Markdown (keyboard shortcuts, table of contents, auto preview and more).

Features

  • Keyboard shortcuts (toggle bold, italic, code span, strikethrough and heading)
    • Tip: **word|** -> **word**| (Ctrl + B)
    • If there is no text selected, the word under cursor be styled (or the entire list item if you are toggling strikethrough)
  • Table of contents (No additional annoying tags like <!-- TOC -->)
    • To make TOC compatible with GitHub, you need to set option githubCompatibility to true
    • Use <!-- omit in toc --> to ignore specific heading in TOC
  • Outline view in explorer panel
  • Automatically show preview when opening a Markdown file (Disabled by default)
  • Print Markdown to HTML
    • It's recommended to print the exported HTML to PDF with browser (e.g. Chrome) if you want to share your documents with others
  • List editing (continue list when pressing Enter at the end of a list item) (also works for quote block)
    • Pressing Tab at the beginning of a list item will indent it
    • Pressing Backspace at the beginning of a list item will unindent it (or delete the list marker)
    • Blank list item will be remove on Enter
    • Ordered list markers will be automatically fixed after you indent/outdent a line or move a line up/down
  • GitHub Flavored Markdown
    • Table formatter (Alt + Shift + F)
    • Task list (use Alt + C to check/uncheck a list item)
  • Math rendering (see screenshot below)
  • Auto completions
    • Images paths
    • Math commands
  • Others
    • Override "Open Preview" keybinding with "Toggle Preview", which means you can close preview using the same keybinding (Ctrl + Shift + V or Ctrl + K V).

Keyboard Shortcuts

shortcuts2

shortcuts3

Table of Contents

toc

List Editing

list editing

Table Formatter

table formatter

Outline

outline

Task Lists

task lists

Math Rendering

math rendering

Shortcuts

KeyCommand
Ctrl + BToggle bold
Ctrl + IToggle italic
Alt + SToggle strikethrough
Ctrl + Shift + ]Toggle heading (uplevel)
Ctrl + Shift + [Toggle heading (downlevel)
Ctrl + MToggle math environment
Alt + CCheck/Uncheck task list item

Available Commands

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

Supported Settings

NameDefaultDescription
markdown.extension.toc.levels1..6Control the heading levels to show in the table of contents.
markdown.extension.toc.unorderedList.marker-Use -, * or + in the table of contents (for unordered list)
markdown.extension.toc.orderedListfalseUse ordered list in the table of contents.
markdown.extension.toc.plaintextfalseJust plain text.
markdown.extension.toc.updateOnSavetrueAutomatically update the table of contents on save.
markdown.extension.toc.githubCompatibilityfalseGitHub compatibility
markdown.extension.preview.autoShowPreviewToSidefalseAutomatically show preview when opening a Markdown file.
markdown.extension.orderedList.markerorderedOr one: always use 1. as ordered list marker
markdown.extension.italic.indicator*Use * or _ to wrap italic text
markdown.extension.showExplorertrueShow outline view in explorer panel
markdown.extension.print.absoluteImgPathtrueConvert image path to absolute path
markdown.extension.print.imgToBase64falseConvert images to base64 when printing to HTML

 

转载于:https://my.oschina.net/ZhenyuanLiu/blog/1818081

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值