Home > Web Front-end > JS Tutorial > body text

Preview markdown and modify preview style in VSCode

一个新手
Release: 2017-10-14 09:54:53
Original
6922 people have browsed it
    • 1. VSCode can directly edit markdown and preview it

    • 2. Modify the markdown preview style in VSCode

    • 三I don’t care, I download the plug-in directly

    • 四End

##1. VSCode can directly edit markdown and preview

Use shortcut keys

Ctrl+k and then press V key, or click in the upper right corner to open the sidebar preview (Scrolling the editing area in the preview will follow the scrolling)
Preview markdown and modify preview style in VSCodeYou can see the following picture:

Preview markdown and modify preview style in VSCodeYou can also use the shortcut key
Ctrl+shift+v to preview directly:
Preview markdown and modify preview style in VSCodeDouble-click You can return to the editing view
Of course, it is more convenient to preview directly with the sidebar


2. Modify the markdown preview style in VSCode

1. Set

Use shortcut keys
Ctrl+, (comma), or click File>Preferences>Settings, or click the settings icon in the lower left corner2. Find markdown in the settings

Preview markdown and modify preview style in VSCodeClick edit
3. Find a markdown CSS style on the Internet (you can also write it yourself)
4. Add the following code to the configuration

//根据你自己的具体位置自己安排"markdown.styles": [          
"file:///D:/Program Files/Microsoft VS Code/resources/app/extensions/markdown/media/Style.css"
  ]
Copy after login

3. I don’t care, I will download the plug-in directly

1. Search for the plugin Markdown Preview Enhanced, and then install it

2. Reload
3. Right-click the menu in the editing area, such as the following options

Preview markdown and modify preview style in VSCode

4. End

The above is the detailed content of Preview markdown and modify preview style in VSCode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!