如何预览VScode中的函数和定义?
How to preview functions and defines in VScode?
有没有办法使用 VSCode 预览文件中的所有函数和定义?
我以前用过Xcode。而在 Xcode 你可以点击顶部的导航器,它会在一个文件中向你展示所有的函数和定义。这样您就可以快速定位到您的函数。
我已经阅读了 VScode 文档,但我没有找到像 Xcode 这样的功能。所以我想知道有没有办法像 Xcode?
那样实现这个功能
查看 vscode 中内置的 the outline view。有了它,您可以轻松地在文件中查看所有函数和其他符号的列表。
The Outline view is out of preview and now enabled by default. It is a separate section in the bottom of the File Explorer. When expanded, it will show the symbol tree of the currently active editor.
There are several Outline view settings which allow you to
enable/disable icons and control the errors and warnings display (all
enabled by default):
outline.icons - Toggle rendering outline elements with icons.
outline.problems.enabled - Show errors and warnings on outline elements.
outline.problems.badges - Toggle using badges for errors and warnings.
outline.problems.colors - Toggle using colors for errors and warnings.
有没有办法使用 VSCode 预览文件中的所有函数和定义?
我以前用过Xcode。而在 Xcode 你可以点击顶部的导航器,它会在一个文件中向你展示所有的函数和定义。这样您就可以快速定位到您的函数。
我已经阅读了 VScode 文档,但我没有找到像 Xcode 这样的功能。所以我想知道有没有办法像 Xcode?
那样实现这个功能查看 vscode 中内置的 the outline view。有了它,您可以轻松地在文件中查看所有函数和其他符号的列表。
The Outline view is out of preview and now enabled by default. It is a separate section in the bottom of the File Explorer. When expanded, it will show the symbol tree of the currently active editor.
There are several Outline view settings which allow you to enable/disable icons and control the errors and warnings display (all enabled by default):
outline.icons - Toggle rendering outline elements with icons.
outline.problems.enabled - Show errors and warnings on outline elements.
outline.problems.badges - Toggle using badges for errors and warnings.
outline.problems.colors - Toggle using colors for errors and warnings.