-
Notifications
You must be signed in to change notification settings - Fork 2
功能预览
zerozawa edited this page Mar 12, 2023
·
4 revisions
{
// 是否现实状态栏信息,状态栏会展示码字时间、码字速度,鼠标移到上面会显示一共码了多少字
"noveler.statusShow": true,
// 状态栏信息的刷新间隔,单位为秒
"noveler.statusTimeUnit": 10,
// 状态栏字数统计是否包含空格
"noveler.statusIncludingSpace": false,
// 状态栏显示的项目
"noveler.statusItems": [
// 速度
"Speed",
// 码字累计时间
"Time",
// 已经输入的字数
"InputWordCount",
// 当前编辑器文本字数
"TextWordCount"
]
}
{
// 回车后是否自动插入缩进、空行
"noveler.autoIndent": true,
// 回车后自动插入的空行数
"noveler.autoIndentLines": 1,
// 回车后自动插入的缩进空格
"noveler.autoIndentSpaces": 4
}
{
// 是否使用盘古排版(即中英文分隔),设置为true的话会在格式化时在中英文间自动插入空格,同时移除多余的空格
"noveler.usePangu": true,
// 回车后自动插入的空行数(自动插入缩进关闭后,此选项也将作为格式化的标准)
"noveler.autoIndentLines": 1,
// 回车后自动插入的缩进空格(自动插入缩进关闭后,此选项也将作为格式化的标准)
"noveler.autoIndentSpaces": 4
}
默认快捷键:alt + \
{
// 此三项无需手动调整,预览页面三个按钮会修改这三项的值
// 预览界面的字体大小
"noveler.previewFontSize": 35,
// 预览界面的缩进长度
"noveler.previewIndentionLength": 4,
// 预览界面的段落间距
"noveler.previewSpaceLines": 1
}
刷新 csv 配置快捷键:alt + f
高亮数据结构请查阅: vscode 文档: DecorationRenderOptions 定义
{
// 用户自定义高亮,按照正则表达式匹配
// 键为正则表达式,值为高亮配置,结构为 DecorationRenderOptions
"noveler.customHighlight": {
"\\d+(\\.\\d+)?": { "color": "#23e40a" },
"《.*?》": { "color": "#8482e4" }
},
// 小说元信息(例如角色的设定、宗门的设定)文件设置
// 文件请使用csv格式,从第一行开始,不要有注释
"noveler.confCSVFiles": [
{
// 文件路径(相对路径只在打开单文件夹时才会读取)
"path": ".vscode/test.csv",
// 要高亮的列名,默认为 name
"key": "名称",
// 悬挂提示的列名,不写则无悬挂信息,无默认值
"hoverKey": "信息",
// 高亮配置,结构为DecorationRenderOptions
"decorationRenderOptions": {
"color": "#9e952f"
}
},
{
// 文件路径(绝对路径在任何情况下都会读取)
"path": "/home/zerozawa/Sources/mine/noveler/test/folder2",
"key": "key",
"hoverKey": "hoverKey",
"decorationRenderOptions": {
"color": "#9e952f"
}
}
]
}
csv 文件示例:
名称,信息
汪言,汪言是一个人
{
"noveler.confCSVFiles": [
{
// ......
// 前缀名,不写则为空字符串
"suggestPrefix": "pj",
// 提示种类名,影响提示的图标
"suggestKind": "Method"
}
],
// 补全时的触发字符, *注*:请尽量使用英文标点作为触发字符, 默认为@
"noveler.completionChar": "@"
}
{
"noveler.confTXTFiles": [
{
// 文件路径(相对路径只在打开单文件夹时才会读取)
"path": ".vscode/test.txt",
// 报错信息,默认为敏感词
"message": "敏感词",
// 报错等级,默认为 Error,可选值请查看 `DiagnosticSeverity`
"diagnosticSeverity": "Error"
}
]
}
TXT 文件示例
av 军阀
血腥 123
{
// 大纲文本保存的目录,只能是相对路径,默认为 .noveler/outlines
"noveler.outlinesDir": ".noveler/outlines"
}
大纲文件会以相对路径 + .md
后缀名保存到 noveler.outlinesDir
目录下。
大纲支持 markdown
语法
更多功能正在开发中...... ^ ^