设置
自定义 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 顺序如下:
-
Typora’s basic styles
-
CSS for current theme
-
base.user.css
under theme folder -
{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 | 重新打开,恢复上一次状态 |