Typora说明

设置

自定义 CSS

编辑页面显示宽度没有全屏,通过修改 CSS 实现 width 到 95%。

打开 theme 文件夹

To open Typora’s theme folder in Finder/Explorer., open the preference panel in the Appearance section, click the “Open Theme Folder” button. under section “Appearance”.

 设置 -> 外观 -> 打开主题文件夹

base.user.css 文件

新建 base.user.css 文件,添加如下 css 内容:

 #write {
     max-width: 95%;
 }

保存为 C:\Users\usr\AppData\Roaming\Typora\themes\base.user.css

根据官方说明,Typora 加载 css 顺序如下:

  1. Typora’s basic styles

  2. CSS for current theme

  3. base.user.css under theme folder

  4. {current-theme}.user.css under theme folder.

Typora无限重置方法记录

对于 2022.04 的版本,创建 reset_typora.cmd 脚本,内容如下:

 @echo off
 chcp 65001
 echo 接下来将会结束 Typora 进程
 pause
 echo 下面出现错误信息只要不是权限不够的错,都属于正常现象,请勿担心
 echo.
 ​
 taskkill /im typora.exe /f
 ​
 :: /f 不提示,强制删除
 :: /v IDate 指定要删除的项
 REG DELETE "HKEY_CURRENT_USER\Software\Typora" /f /v IDate
 REG DELETE "HKEY_CURRENT_USER\Software\Typora" /f /v SLicense
 ​
 :: version 0.x & version 1.x
 del /F /A "%APPDATA%\Typora\profile.data"
 del /F /A "%APPDATA%\Typora\history.data"
 ​
 :: version 0.x
 del /F /A "%APPDATA%\Typora\Cookies"
 ​
 :: version 1.x
 del /F /A "%APPDATA%\Typora\Local State"
 ​
 :: 写回 {"didShowWelcomePanel2":true}
 echo 7b2264696453686f7757656c636f6d6550616e656c32223a747275657d > "%APPDATA%\Typora\profile.data"
 echo.
 echo 完成
 ​
 :: 等待按一个键继续
 :: pause
 ​
 :: 启动 Typora
 start typora

执行脚本后重启 typora 即可。

命令汇总

ID命令说明
01"C:\Program Files\Typora\typora.exe" --reopen-file重新打开,恢复上一次状态
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值