Visual Studio Code 2017 年 2 月(版本 1.10)发行说明描述了他们所谓的“Markdown 片段链接导航”。这是描述:
“包含片段的 Markdown 文件的链接现在将尝试打开相应标题处的文件:
* [Section](#_header)
* [Another file](./other_file#_header)
# Header
...
这允许直接在 VS Code 编辑器中快速浏览文档。”
我搜索了有关此主题的更多信息,但没有找到任何内容。 Markdown 中的片段?我不知道这是可能的。有人可以指出我更多信息吗?
我实现了这个功能。抱歉,文档不清楚
In 1.9, we added support for ctrlclick on links in the markdown editor to open the corresponding document.
Ctrl clicking [this link destination](./other_file.md) will open `other_file.md` in the editor
1.10 添加了对导航到当前 Markdown 文件中的特定标头的支持
Ctrl clicking [this link destination](#header) will scroll to # Header
...
# Header
您还可以跨文件使用它:
Ctrl clicking [this link destination](./other-file.md#header) will open `other-file.md` and scroll to `#header`
这允许完全在编辑器中导航基于 Markdown 的文档。这是正在运行的功能:
如果您遇到任何错误或对 VSCode markdown 支持有任何功能建议,请告诉我们:https://github.com/Microsoft/vscode/issues/new https://github.com/Microsoft/vscode/issues/new
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)