转到 VSCode 中的下一个方法快捷方式

Go to next method shortcut in VSCode

VSCode是否有快捷方式可以移动到同一文件中的下一个方法定义?我在设置中找不到这样的东西。

IntelliJ 有这个功能,例如,你可以在设置

中找到它作为Next Method

为了实现这一点,我开发了一个扩展,它提供了两个关键命令来在文件中的成员中上下导航。

https://marketplace.visualstudio.com/items?itemName=mishkinf.goto-next-previous-member#overview

Visual Studio Code Extension to navigate through the functions, variables, and classes using quick and easy keycommands similar to functionality provided by IntelliJ IDE's (next/previous function) or Resharper (next/previous member)

如果有任何您想要添加的功能,请告诉我。

老问题,但我发现与面包屑交互很有用。 ctrl-shift-. 将焦点放在面包屑上,向上和向下箭头在轮廓中移动,编辑器遵循的奖励。

另一种选择是使用 Go to Symbol in Editor 默认热键是 Ctrl+Shift+o。 然后输入:进行排序。