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

25 lines
772 B
Markdown

# 模板
VNote支持基于模板创建笔记。
创建笔记时,您可以在对话框中选择一个模板。
![](vx_images/990329117213.png)
VNote将模板文件保存在文件夹`templates`中。一个文件对应一个模板。
可以通过系统的文件浏览器直接添加或者删除模板文件。
模板文件中支持**片段**。例如,可以在一个模板中这样写:
```md
# %no%
This is a template using **Snippet** to insert note name as the title automatically.
```
`%no%`是一个内建片段,会被识别为当前笔记名字(不带后缀)。因此,如果笔记命名为`week report.md`,则新笔记内容将如下:
```md
# week report
This is a template using **Snippet** to insert note name as the title automatically.
```