search
HomeDevelopment ToolsVSCodeUse the VS Code plug-in to create the perfect MarkDown editor

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: 自动更新

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自定义
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的办法,
请参考我的另一篇教程,链接将会在下面给出。
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!

Statement
This article is reproduced at:CSDN. If there is any infringement, please contact admin@php.cn delete
Best Practices for Writing JavaScript Code with VSCodeBest Practices for Writing JavaScript Code with VSCodeMay 15, 2025 pm 09:45 PM

Best practices for writing JavaScript code in VSCode include: 1) Install Prettier, ESLint, and JavaScript (ES6) codesnippets extensions, 2) Configure launch.json files for debugging, and 3) Use modern JavaScript features and optimization loops to improve performance. With these settings and tricks, you can develop JavaScript code more efficiently in VSCode.

Use VSCode to perform version fallback operation of codeUse VSCode to perform version fallback operation of codeMay 15, 2025 pm 09:42 PM

In VSCode, you can use Git for code version fallback. 1. Use gitreset--hardHEAD~1 to fall back to the previous version. 2. Use gitreset--hard to fall back to a specific commit. 3. Use gitrevert to safely fall back without changing history.

Use tips and recommendations for the VSCode plug-in marketUse tips and recommendations for the VSCode plug-in marketMay 15, 2025 pm 09:39 PM

To better utilize the VSCode plug-in market, first use advanced search functions to filter the plug-in, secondly install and uninstall the plug-in, and finally make full use of the plug-in functions and maintain them regularly. 1. Use keywords and advanced search functions (ratings, downloads, release dates) to filter plugins. 2. Click "Install" to install the plug-in, and click "Uninstall" to uninstall the plug-in. 3. It is recommended to use Prettier, GitLens and LiveShare plugins, and regularly review and update the plugins to optimize performance.

An effective way to resolve Git commit conflicts in VSCodeAn effective way to resolve Git commit conflicts in VSCodeMay 15, 2025 pm 09:36 PM

Handling Git commit conflicts in VSCode can be effectively resolved through the following steps: 1. Identify the conflicting file, and VSCode will be highlighted in red. 2. Manually edit the code between conflict marks and decide to retain, delete or merge. 3. Keep branches small and focused to reduce conflicts. 4. Use GitLens extension to understand code history. 5. Use VSCode to build-in Git commands, such as gitmerge--abort or gitreset--hard. 6. Avoid relying on automatic merge tools and carefully check the merge results. 7. Delete all conflict marks to avoid compilation errors. With these methods and tricks, you can handle Git conflicts efficiently in VSCode.

How to manually install plugin packages in VSCodeHow to manually install plugin packages in VSCodeMay 15, 2025 pm 09:33 PM

The steps to manually install the plug-in package in VSCode are: 1. Download the .vsix file of the plug-in; 2. Open VSCode and press Ctrl Shift P (Windows/Linux) or Cmd Shift P (Mac) to call up the command panel; 3. Enter and select Extensions:InstallfromVSIX..., then select .vsix file and install. Manually installing plug-ins provides a flexible way to install, especially when the network is restricted or the plug-in market is unavailable, but attention needs to be paid to file security and possible dependencies.

Environment configuration for running Ruby code in VSCodeEnvironment configuration for running Ruby code in VSCodeMay 15, 2025 pm 09:30 PM

Configuring the Ruby development environment in VSCode requires the following steps: 1. Install Ruby: Download and install from the official website or using RubyInstaller. 2. Install the plug-in: Install CodeRunner and Ruby plug-ins in VSCode. 3. Set up the debugging environment: Install the DebuggerforRuby plug-in and create a launch.json file in the .vscode folder for configuration. This way, you can write, run, and debug Ruby code efficiently in VSCode.

Efficient way to install VSCode plug-in in batchesEfficient way to install VSCode plug-in in batchesMay 15, 2025 pm 09:27 PM

An efficient way to install VSCode plugins in batches is to use command line tools. The specific steps include: 1. Export the plug-in list: run code--list-extensions>extensions.txt. 2. Bulk installation of plug-ins: Run catextensions.txt|xargs-n1code--install-extension, so that plug-in configurations can be easily synchronized between different environments.

View Git history and changes in VSCodeView Git history and changes in VSCodeMay 15, 2025 pm 09:24 PM

How to view Git history and changes in VSCode include: 1. Open VSCode and make sure the project has initialized the Git repository. 2. Click the "Source Code Management" icon in the left sidebar. 3. Select "...(more options)" and click "Git:ShowGitOutput". 4. View commit history and file changes. 5. Right-click the file and select "Git:ShowFileHistory" to view the file change history. Through these steps, you can efficiently view Git history and changes in VSCode to improve development efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Clair Obscur: Expedition 33 - How To Get Perfect Chroma Catalysts
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft