简体   繁体   English

Sublimetext查找用法,参考

[英]Sublimetext find usages, references

I'm using SublimeText3 and wanted to know if there is an option (package) which can be used to 我正在使用SublimeText3,想知道是否有一个选项(包)可用于

  • Find references within the file. 在文件中查找引用。
  • Find references within the folder. 在文件夹中查找参考。
  • Goto definition. 转到定义。

I found a command called Goto->Reference, but this does not work for the current file and seems buggy. 我找到了一个名为Goto-> Reference的命令,但这不适用于当前文件,并且似乎有问题。

I also found a package called wordhighlighter which is very useful. 我还发现了一个名为wordhighlighter的软件包,它非常有用。 https://github.com/SublimeText/WordHighlight . https://github.com/SublimeText/WordHighlight I want to use this to navigate among highlighted words. 我想用它来浏览突出显示的单词。 Is there any keyboard shortcut to achieve this? 是否有任何键盘快捷键可以实现此目的? There is an option to expand and collapse the selection but thats about it. 有一个选项可以展开和折叠所选内容,仅此而已。

For someone else who comes up with the same issue, I found the answer here 对于其他提出相同问题的人,我在这里找到了答案

How to navigate between instances of selected text in Sublime Text 3? 如何在Sublime Text 3中的选定文本实例之间导航?

{ "keys": ["alt+super+g"], "command": "find_under" }, { "keys": ["shift+alt+super+g"], "command": "find_under_prev" }, {“键”:[“ alt + super + g”],“命令”:“ find_under”},{“键”:[“ shift + alt + super + g”],“命令”:“ find_under_prev”},

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM