前言

设置

外观

推荐主题:Drake Vue3
字体大小:15
允许折叠大纲

修改快捷键

Windows

用户配置文件 ~\AppData\Roaming\Typora\conf\conf.user.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** For advanced users. */
{
"defaultFontFamily": {
"standard": null, //String - Defaults to "Times New Roman".
"serif": null, // String - Defaults to "Times New Roman".
"sansSerif": null, // String - Defaults to "Arial".
"monospace": null // String - Defaults to "Courier New".
},
"autoHideMenuBar": false, //Boolean - Auto hide the menu bar unless the `Alt` key is pressed. Default is false.

// Array - Search Service user can access from context menu after a range of text is selected. Each item is formatted as [caption, url]
"searchService": [
["Search with Google", "https://google.com/search?q=%s"]
],

// Custom key binding, which will override the default ones.
// see https://support.typora.io/Shortcut-Keys/#windows--linux for detail
"keyBinding": {
// for example:
// "Always on Top": "Ctrl+Shift+P"
// All other options are the menu items 'text label' displayed from each typora menu
"Code": "Ctrl+K",
"Hyperlink": "Ctrl+Shift+L",
"Toggle Sidebar": "Ctrl+Shift+S",

},

"monocolorEmoji": false, //default false. Only work for Windows
"maxFetchCountOnFileList": 500,
"flags": [] // default [], append Chrome launch flags, e.g: [["disable-gpu"], ["host-rules", "MAP * 127.0.0.1"]]
}

修改回车换两行

修改回车换两行

  • 进入主题文件夹,找到你想修改的主题的css文件,用记事本打开。
  • 找到p,,把后面的数值改成0 0 0rem,保存,退出。
  • 重启typora,进入刚才修改的主题,你会发现只按回车,也变成单行换行了。

比如drake主题在455行有

1
2
3
p, blockquote, ul, ol, dl, table {
margin: var(--p-spacing) 0;
}

修改之后为

1
2
3
4
5
6
p{
margin:0 0 0rem;
}
blockquote, ul, ol, dl, table {
margin: var(--p-spacing) 0;
}

主题配色修改

Typora中主题css修改

Drake主题修改

加粗颜色:–strong-color

高亮

链接下划线:–drake-highlight

引用

行内代码:inline code

Blue Topza

H1 #96c22e

H2 #4cb148

H3 #3abbbb

H4 #75a2e6

H5 #b296f3
H6 #eaa5f8

参考文献