vnote/zh_cn/docs/用户/配置.md
2021-11-17 21:47:36 +08:00

34 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 配置
VNote中有三种主要配置。
* 默认配置;
应用程序的默认配置。用户无需修改这些文件,因为它们会在版本更新的时候被强制覆写。要自定义配置,您可以拷贝这些文件到**用户配置**文件夹中并修改。
* 用户配置;
用户配置,会覆盖默认配置。
* 会话配置;
关于会话的配置,例如笔记本列表、主窗口的形状大小等等。它是一个位于*用户配置*文件夹中的名为`session.json`的文件。如果需要修改该文件您应该首先关闭VNote因为VNote会在关闭时写入该文件。
![](vx_images/306805229881.png)
## 配置的组成
配置文件夹下面有以下几个文件夹和文件:
```
.
├── dicts (dictionaries for spellcheck)
├── docs (docs used by VNote to provide help)
├── syntax-highlighting (syntax highlighting files for text editor from Kate)
├── themes (themes of VNote)
├── web (resources used for read mode)
└── vnotex.json (configuration file)
```
对于`vnotex.json`文件,请参考默认配置文件夹中的文件,其中包含有对每个域的注释。
## 便携化
用户可能希望配置文件能跟随VNote的可执行文件一起。可以参考以下步骤来迁移配置文件夹
1. 关闭VNote
2. 复制默认配置文件夹`VNote`到可执行文件(如`vnote.exe`)所在目录中,并重命名为`vnotex_files`
3. 复制用户配置文件夹`VNote`到可执行文件所在目录中,并重命名为`user_files`