英文:
JetBrains IDE double shift to search everywhere equivalent in VS Code
问题
在JetBrains的IDE(如IntelliJ)中,当您按下<kbd>Shift</kbd>键两次时,会弹出一个名为“搜索所有地方”的对话框,您可以在其中键入任何关键字或类名,它会列出所有匹配项(甚至包括第三方类,如果源代码可用)。
在VS Code中是否有类似的功能来实现JetBrains的“搜索所有地方”?
链接:https://blog.jetbrains.com/idea/2020/05/when-the-shift-hits-the-fan-search-everywhere/
英文:
In JetBrains IDEs like IntelliJ, when you press <kbd>Shift</kbd> key twice it pops up a 'Search Everywhere' dialog that you can type any keyword or class names and it lists all matches (even 3rd party classes if sources are available).
Is there any equivalent for JetBrains Search Everywhere in VS Code?
https://blog.jetbrains.com/idea/2020/05/when-the-shift-hits-the-fan-search-everywhere/
答案1
得分: 1
在命令面板中有一个在工作区中查找符号
命令,默认绑定为<kbd>ctrl/cmd</kbd>+<kbd>t</kbd>。这是否适用于您可能取决于提供语言支持的扩展是否解析出您想要搜索的符号并访问您想要搜索的第三方库。
如果这不起作用,您可以使用搜索视图,进行文本/正则表达式搜索。
英文:
There's the Go to Symbol in Workspace
command in the command palette, which is bound by default to <kbd>ctrl/cmd</kbd>+<kbd>t</kbd>. Whether or not that will work for you will I think depend on whether the extension providing language support that you are using parses out symbols that you want to search for and reaches into the 3rd party libraries you want to search in.
If that doesn't work, you could use the Search View and just do text/regex searches.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论