VS Code中Ruby文件能否使用‘转到符号’及‘工作区转到符号’功能?
Let me walk through the current state of things since you've noticed the gap between JavaScript and Ruby support here:
- JavaScript files in VS Code get native, out-of-the-box support for both Go to Symbol in File and Go to Symbol in Workspace—no extra extensions required to jump around symbols smoothly.
- For Ruby, though, the situation is pretty frustrating:
- The most widely used Ruby extensions (like the official
Rubyextension andRuby Solargraph) don't offer any support for workspace-wide symbol navigation. - The
Ruby Symbolsextension only lets you jump to symbols within the current open file; it can't index or search symbols across your entire workspace.
- The most widely used Ruby extensions (like the official
It's a clear limitation compared to JavaScript's seamless experience, and as of now, there's no mainstream extension that fills this workspace-wide symbol lookup gap for Ruby in VS Code.
内容的提问来源于stack exchange,提问作者Gary
相关产品推荐
相关产品推荐

