我如何搜索withinIntelliJ IDEA 中的特定代码块或选择?
I got used to using this feature in Eclipse. In Eclipse you can just double click on the beginning of a curly bracket, and it'll highlight the entire block of code. After which you could do Command+f
(Ctrl+f on Windows) to search ONLY in the highlighted block, or you could just highlight whatever you need and search just that block of code.
Go to 设置 |键位图,搜索Find...行动于Other团体。此操作应具有以下描述:
在活动编辑器中查找字符串,显示
模态对话框
Assign a keyboard shortcut to this action (you need to make a copy of default keymap to modify it), for example Ctrl+Alt+Shift+F.
在编辑器中时,选择任何文本块,然后按此快捷键,将打开一个对话框,其中包含Scope自动设置为选定的文本:
To quickly select the method body while standing on the opening curly brace use Ctrl+W.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)