Search Results Panel for SublimeText 2

南笙酒味 提交于 2021-02-18 11:11:44

问题


I use Notepad++ on my PC and Sublime Text 2 on my Mac. You can "find all instances" of text in Notepad++, which will then display the find results in a window. In this window I see the line number where the text was found and a snippet of the surrounding text. I find this tremendously useful.

Is there a similar feature in Sublime Text 2?


回答1:


You could use Find All and then Cmd+F2 to set bookmarks.




回答2:


Yes. Use Find in Files (Ctrl+Shift+F), and then select the "add current file" option at the end of the "where:" textfield.




回答3:


if you only want see this in a panel like notepad++,when you search with ctrl+shift+f, you can click the button "Use Buffer" left to the "find:" then the answer will show in panel down the screen




回答4:


If the search box you are talking about is indeed the standard search box you can view when you press Ctrl+F or Search->Find, then one way to regain your window is like you do with every other window in Windows that has default handling:

Press Ctrl+F or Search->Find to assure your find window is in foreground and focussed.

1)OPress Alt+Space to open the Window Context Menu of your Find window.
2) Press Enter to select the "Move" entry of your context menu.
3) Press one of the Arrow Keys at least once.
4) Move your mouse. The Window should now follow your mouse coursor.  
   Place it wherever you need it, and click.

Regards Mr. Arvind Yadav www.Objectzoom.com



来源:https://stackoverflow.com/questions/15929527/search-results-panel-for-sublimetext-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!