使用文档 - 配置Typora中的图片上传功能
目录
使用Typora+PicGo+Gitee搭建舒适便捷的个人写作环境
安装PicGo
打开 Typora 依次点击: 文件–>偏好设置–>图像, 进入到下图界面

点击上传服务后面的下拉框, 选择 PicGo(app) 选项, 然后点击下面的 下载PicGo(app) 按钮, 跳转到下载页面

点击免费下载会跳到 GitHub, 如下图, 下拉到 Assets, 选择你需要的版本下载, 然后安装

安装插件
打开 PicGo, 点击插件设置, 搜索 gitee, 点击安装, 这时会提示安装 NodeJS, 根据提示下载, 安装后重启 PicGo, 再点击安装

这时就能在图床设置中看到Gitee图床

建立连接
进入 Gitee 新建一个专门存储图片的仓库, 用户名和仓库名就是要填入PicGo 中的

创建私人令牌, 依次点击右上角头像–>设置, 然后点击左边的私人令牌

进入下图页面

点击生成新令牌后进入下图页面, 如图选择权限, 输入描述信息后点击提交

生成新令牌后立即复制保存, 令牌不会再明文显示在平台上

打开 PicGo, 如下图填写, 点击设为默认图床

上传图片
先设置一下 PicGo, 根据自己的习惯设置

打开 Typora, 把图片拖进 Typora 时会有提示框, 在上传图片之前可以先设置一下要上传到哪个目录

设置上传到哪个目录: 打开 Picgo, 把下图的 path 改成你想存放的目录, 然后点击确定

然后在 Typora 中右击图片, 点击上传图片

弹出重命名图片的窗口, 重命名后点击确定

这个时候你就可以在 Gitee 中的仓库中看到图片了
