Home > Development Tools > VSCode > Use the VS Code plug-in to create the perfect MarkDown editor

Use the VS Code plug-in to create the perfect MarkDown editor

autoload
Release: 2021-03-11 13:51:32
forward
6544 people have browsed it

1. Overview

I have recently become obsessed with MarkDown, so I started studying. The first is the choice of editor. You can refer to this article:
A list of easy-to-use MARKDOWN editors
I did not choose any of them to try because I personally like VS Code, and I personally think that the configured VS Code is not inferior to any MarkDown editor. Of course, if you feel that your own configuration is too troublesome, you can also use the above editor directly. The editor or Typora is used by a friend and can be previewed in the editing area in real time. The effect is very good.

2. Plug-in installation and configuration

Steps to install and configure the plug-in:

-Installation: Ctrl Shift POpen Control the command line, and then enter the following to open the plug-in market. Enter markdown to see all related plug-ins:

Use the VS Code plug-in to create the perfect MarkDown editor

-Configuration: Ctrl Shift POpen the control command line, and then enter the following to change the plug-in configuration
The first option is the configuration file in json format, the second option is to use the UI interface to open the configuration file, and the third option The first is to open the default configuration file. All configurations are in it and can be copied, but cannot be edited. Copy it to the first option to configure it. Open the first option hereOpen Settings(JSON)

Use the VS Code plug-in to create the perfect MarkDown editor

I installed all the following plugins:

Use the VS Code plug-in to create the perfect MarkDown editor

2.1 markdown-all-in-one

  • Introduction: Everything you need to write Markdown (keyboard shortcuts, table of contents, automatic preview, etc.)
  • Configuration : This does not require much configuration, basically the default is fine

2.2 markdown toc

  • Introduction: This plug-in is used to generate a table of contents
  • Configuration:
markdown-toc.depthFrom: 生成目录的标题最低级别,默认h1
markdown-toc.depthTo: 生成目录的标题最高级别,默认h6
markdown-toc.insertAnchor: 自动插入链接地址,默认false
markdown-toc.withLinks: 自动插入链接,默认true
markdown-toc.updateOnSave: 自动更新
Copy after login

2.3 markdown math

  • Introduction: This extension uses the $ delimiter Support inline mathematical formulas, or use KaTeX parse error: Can't use function '$' in math mode at position 126: ... formula cannot be used, all formulas must be in ' $̲ $ ' or ... Among $$.
  • Configuration: No configuration required

2.4 markdown pdf

  • Introduction: markdown is not supported For pdf output, you need to use other methods to output, just use this plug-in.
    This plug-in also supports exporting to the following formats. You only need to right-click the md file to pop up the options
  • markdown pdf

  • # #Configuration: This plug-in has a total of 34 configurations, most of which are fine by default. The following are commonly used configurations:
markdown-pdf.type: 设置默认导出格式,也就是上图中的第一个选项,默认是pdf
markdown-pdf.outputDirectory: 导出路径
markdown-pdf.outputDirectoryRelativePathFile: 导出相对路径
markdown-pdf.styles: 导出的pdf文件的格式,可以使用本地的绝对路径自定义,也可以使用网上的
markdown-pdf.displayHeaderFooter: 是否显示页眉页脚,默认是true,我改为false,因为默认页眉页脚很丑,
当然也可以使用markdown-pdf.headerTemplate和markdown-pdf.footerTemplate自定义
Copy after login
2.5 Markdown Preview Enhanced

Right-click on the preview window to appear As shown in the picture below:

Use the VS Code plug-in to create the perfect MarkDown editor

  • Introduction: Real-time preview plug-in, very useful, can also be combined with other programs in the picture above to export For other formats, it is recommended to use pandoc, which can be exported to word files, pdf, html and other formats, but the actual export effect is not It's not ideal, maybe the posture is wrong, I didn't dig into it.
  • Configuration:
"markdown-preview-enhanced.enableTypographer": 是否可以显示流程图,默认false,我调成true,
但是建议画流程图还是使用其他软件,插入图片,另外,即便可以在预览窗口看到流程图,
使用markdown pdf导出为PDF的时候也不能显示。。。。。只能看看。。。。
"markdown-preview-enhanced.previewTheme":设置预览主题,只能设置它给定的几个主题,
默认是 "github-light.css", 但是人的智慧是无穷的使用自己下载的或者自定义的CSS的办法,
请参考我的另一篇教程,链接将会在下面给出。
Copy after login
Solve the problem that Markdown Preview Enhanced cannot use custom css under VS Code.

Recommendation:

php tutorial,php video tutorial

The above is the detailed content of Use the VS Code plug-in to create the perfect MarkDown editor. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template