Ste*_*Nay 2 markdown visual-studio-code
Visual Studio Code 的 2017 年 2 月(版本 1.10)发行说明描述了他们称为“Markdown 的片段链接导航”的内容。这是描述:
“指向包含片段的 Markdown 文件的链接现在将尝试在相应的标题处打开文件:
* [Section](#_header)
* [Another file](./other_file#_header)
# Header
...
Run Code Online (Sandbox Code Playgroud)
这允许直接在 VS Code 编辑器中快速导航文档。”
我已经搜索了有关此主题的更多信息,但没有找到任何内容。Markdown 中的片段?我不知道这是可能的。有人可以指出我更多信息吗?
我实现了这个功能。抱歉文档不清楚
在 1.9 中,我们ctrlclick在 markdown 编辑器中添加了对打开相应文档的链接的支持。
Ctrl clicking [this link destination](./other_file.md) will open `other_file.md` in the editor
Run Code Online (Sandbox Code Playgroud)
1.10 添加了对导航到当前 Markdown 文件中的特定标题的支持
Ctrl clicking [this link destination](#header) will scroll to # Header
...
# Header
Run Code Online (Sandbox Code Playgroud)
您还可以跨文件使用它:
Ctrl clicking [this link destination](./other-file.md#header) will open `other-file.md` and scroll to `#header`
Run Code Online (Sandbox Code Playgroud)
这允许完全在编辑器中导航基于 Markdown 的文档。这是正在运行的功能:

如果您遇到任何错误或对 VSCode 降价支持有任何功能建议,请告诉我们:https : //github.com/Microsoft/vscode/issues/new
| 归档时间: |
|
| 查看次数: |
1360 次 |
| 最近记录: |