当前位置:网站首页>Typora charges? Build vs Code markdown writing environment
Typora charges? Build vs Code markdown writing environment
2022-06-24 07:01:00 【Three evil】
Hello everyone , I'm the third , I am most used to it MarkDown Writing is Typora, WYSIWYG user experience , Plus a wealth of themes , People can't help shouting “ It's delicious ”.
But everybody knows that ,Typora1.0 after , It starts charging , Recently, my Mac It's on the computer Typora, Has started prompting me to upgrade . and , Organize my 《 Counter attack Manual of flour dregs 》 When , Because the file is too big ,Typora Very Caton , therefore , reasoning , I decided to use it. VS Code Build a set of MarkDwon Writing environment .
One 、VS Code install
VS Code We don't need to talk about the installation of , Download the installation package of the corresponding version from the official website , Can be installed .
Official website download address :https://code.visualstudio.com/Download

This is my Windows It's installed on the computer VS Code, Look for the , My top bar 、 The sidebars are all in Chinese , Because Chinese plug-ins are installed :

Two 、MarkDown Plug in enhancements
Let's take a look at the direct use of VS Code open MarkDown The effect of the document :

Double column preview can be opened in the upper right corner :

look , just so so , But there is still room for improvement , We can install some plug-ins to make it better .
1. Markdown All in One
Markdown All in One It is a multi in one MardDown Add ons :

It claims to support Markdown All the functions required , Including keyboard shortcuts 、 Catalog 、 Auto preview, etc , You can take a look at its extension page , Or warehouse documentation :
- https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
- https://github.com/yzhang-gh/vscode-markdown/blob/master/README.md

2.Markdown Image
Markdown Image It's mainly about MarkDown Insert an extension of the picture in , Support to store pictures in local or third-party drawing beds or objects .
Using this plug-in , You can do something like that Typora Direct copy of local pictures , Then paste in MarkDown, By default, image files are placed locally , It can also be configured to support Imgur, Seven cattle ,SM.MS,Coding Isograph bed .

After installing the plug-in , Some configurations can be made , Go to the configuration page , Search for :markdown-image, You can configure the relative path , The default picture file is saved in /res Under the path .

Using shortcut keys Shift+Alt+V You can directly paste the copied picture from the clipboard into the document :

3.Markdown Preview Enhanced
Markdown Preview Enhanced It's right VS Code Preview enhancements , Can improve VS Code Preview experience for .

After installing this plug-in , Click the preview button , Enhanced preview will be used :

You can also display the contents in the sidebar , But it shows the directory , The whole interface is somewhat cramped .

It also provides multiple preview topics :

4.Word Count CJK
Word Count CJK Is a plug-in for counting Chinese characters :

For a man like me, who loves long words , See the number of words in the article , It's also full of sense of achievement .

5.MarkDown Editor
If we just want to Typora What about the WYSIWYG experience ?
I also found a plug-in MarkDown Editor:

After installation , Yes MD File selection Open with MarkDown Editor You can open it WYSIWYG MD The file .

There are other plug-ins :
- markdownlint:markdow Format checking
- Markdown Preview Github Styling:GitHub Theme preview
You can also experience it .
3、 ... and 、 Drawing bed construction
Use MarkDown writing , There is another important requirement , It's a drawing bed , The article we wrote is to be published ,MD The picture in is saved as a path , The local path cannot be accessed when it is published , So we need to give MD Editor access map bed function .
I used it before. Typora+PicGo+Gitee Set up a picture bed , later Gitee What happened , It's changed to Typora+PicGo+Github, We also follow this line of thought , stay VS Code Build a picture bed on the .
1.GitHub Warehouse configuration
2.1. Create a new warehouse
Create a new GitHub Warehouse :
- Open , necessary , Prevent access to
- Add one READM file , Prevent the warehouse from having no trunk branches

2.2. Generate token
Get into settings

find developer settings

Create a new Personal access tokens, The time is set to never expire , to repo Authority is enough

Generated Token Write it down. , Show only once

2. Installation configuration PicGo
2.1. install PicGO plug-in unit
stay VS Code Search inside PicGo, install :

2.2. To configure PicGO
- open PicGo Extended configuration for

- To configure uploader, choice github

GitHub Related configuration , Take my configuration as an example :
Branch:main, Branch
Path: empty , You can also configure a relative path
Custome Url: empty ,
In fact, you can configure one CDN Accelerated url,jsDeliver, It's a free CDN, It seems that it is not available recently , You can also try , How to use it :
https://cdn.jsdelivr.net/gh/ Yours github user name / Your warehouse name @ Released version number——https://cdn.jsdelivr.net/gh/fighter3/picgo-win/fighter3/picgo-win/picRepo:fighter3/picgo-win, user name / Warehouse format
Token: Just fill in the ones saved before

3. Use the drawing bed
- open MD file , Paste a picture from somewhere else , Use
Ctrl + Alt + U, You can see that the file was successfully uploaded , And you can preview

Image upload related shortcut keys :
| OS | Upload pictures from the pasted version | Upload pictures from the browser | Upload a picture from the input box |
|---|---|---|---|
| Windows/Unix | Ctrl + Alt + U | Ctrl + Alt + E | Ctrl + Alt + O |
| OsX | Cmd + Opt + U | Cmd + Opt + E | Cmd + Opt + O |
use GitHub When the overall picture bed is still not ideal , Upload and access are not stable , We can also do that PicGo In the plug-in, replace the drawing bed with seven cows 、 Or Tencent cloud 、 Alibaba cloud , In general, the process is similar , It's easier .
Reference resources :
[1]. take VS Code Create a comfortable Markdown Editor
[2]. vscode By second Full function What you see is what you get markdown Editor
[3]. stay VS Code Use in Picgo + jsDelivr + Github Build a high-speed stable drawing bed
Face slag counter attack series :
- Face slag counter attack :Java Basic fifty-three questions
- Face slag counter attack :Java Set up a series of thirty questions
- Face slag counter attack :JVM Classic fifty questions , Now the interview is stable !
- Face slag counter attack :Java Ask
- Face slag counter attack :Spring Thirty five questions , 40000 words + Fifty pictures in detail !
- Face slag counter attack : Figure 22 、 Eight thousand words 、 Twenty ask , Get it all done MyBatis!
- Face slag counter attack : Computer network 62 ask , 30000 word graphic explanation ! Collect quickly !
- Interview byte , Hung up by the operating system
- Face slag counter attack :RocketMQ Twenty three questions
边栏推荐
- Overview of new features in mongodb5.0
- Application of intelligent reservoir management based on 3D GIS system
- What is domain name resolution? What if the domain name cannot be resolved?
- Le système de surveillance du nuage hertzbeat v1.1.0 a été publié, une commande pour démarrer le voyage de surveillance!
- SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?【英文版】
- Authoritative recognition! Tencent cloud data security Zhongtai was selected as the 2021 pioneer practice case
- leetcode:1856. 子数组最小乘积的最大值
- Asp+access web server reports an error CONN.ASP error 80004005
- Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.
- 【问题解决】The connection to the server localhost:8080 was refused
猜你喜欢

【二叉数学习】—— 树的介绍
![Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.](/img/2c/d04f5dfbacb62de9cf673359791aa9.png)
Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.

C语言学生管理系统——可检查用户输入合法性,双向带头循环链表

目标5000万日活,Pwnk欲打造下一代年轻人的“迪士尼乐园”

成为 TD Hero,做用技术改变世界的超级英雄 | 来自 TDengine 社区的邀请函

Leetcode: Sword finger offer 26: judge whether T1 contains all topologies of T2

Open source and innovation

开源与创新

【JUC系列】Executor框架之CompletionFuture

机器人迷雾之算力与智能
随机推荐
Asp+access web server reports an error CONN.ASP error 80004005
十年
Do you know about Statistics?
文件系统笔记
应用配置管理,基础原理分析
Record -- about the problem of garbled code when JSP foreground passes parameters to the background
Five minute run through 3D map demo
If you want to learn programming well, don't recite the code!
Command ‘[‘where‘, ‘cl‘]‘ returned non-zero exit status 1.
leetcode:剑指 Offer 26:判断t1中是否含有t2的全部拓扑结构
The three-year action plan of the Ministry of industry and information technology has been announced, and the security industry has ushered in major development opportunities!
What are the easy-to-use character recognition software? Which are the mobile terminal and PC terminal respectively
Brief introduction of domain name registration
What is the main function of cloud disk? How to restore deleted pictures
sql join的使用
华为云低时延技术的九大绝招
puzzle(019.1)Hook、Gear
C语言学生管理系统——可检查用户输入合法性,双向带头循环链表
SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?【英文版】
35 year old crisis? It has become a synonym for programmers