The desire is to be able to insert blocks of code directly from the code file into the notes, as there are times when it is necessary to place blocks of code in the notes to be able to explain them against, but also to be able to edit and run it quickly in tools such as VSCode.
Without such a mechanism, it would result in the need to maintain code in two places at once.
A Jupyter-like mechanism is a good idea, but it might be a little too difficult to implement.
希望能够从代码文件中直接插入代码块到笔记中,因为有的时候需要在笔记中放置代码块,以便能够对照进行讲解,但是也需要能够在VSCode等工具中编辑和快速运行它。
如果没有这样的机制,就会导致需要同时维护两个地方的代码。
类似 Jupyter 的机制是个好主意,不过实现起来可能太困难了些。