转载码农命架构心,原文地址:https://blog.csdn.net/qq_41489540/article/details/86761595
文件—>偏好设置—>往下拉有一个 打开高级设置 ,点击—>看到两个json格式的文件,打开第二个(conf.user.json),用记事本打开—>第17行“keyBinding”,在大括号中写 “代码块”:“你要设置的快捷键”,比如我的是“代码块”:“Ctrl+Alt+P”,保存文件,重启typora即可生效。
/** For advanced users. */
{
"width" : null, // Integer - Window's width in pixels. Default is null (last window width)
"height" : null, // Integer - Window's height in pixels. Default is null (last window height)
"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.
"keyBinding": {
// for example:
// "Always on Top": "Ctrl+Shift+P"
},
"keyBinding": {
"删除当前行/句" :"Ctrl+D"
// "Always on Top": "Ctrl+Shift+P"
},
"autoSaveTimer" : 5, // default 5 minutes
"maxFetchCountOnFileList": 500
}
或者下面的是删除整行的快捷键.
// Custom key binding, which will override the default ones.
"keyBinding": {
"Delete Line/Sentence" :"Ctrl+D"
// for example:
// "Always on Top": "Ctrl+Shift+P"
},