{"id":1623,"date":"2011-03-15T14:23:00","date_gmt":"2011-03-15T14:23:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2011\/03\/15\/quick-find-extension-in-the-productivity-power-tools\/"},"modified":"2022-10-10T14:40:55","modified_gmt":"2022-10-10T21:40:55","slug":"quick-find-extension-in-the-productivity-power-tools","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/quick-find-extension-in-the-productivity-power-tools\/","title":{"rendered":"Quick Find extension in the Productivity Power Tools"},"content":{"rendered":"<p>We\u2019re pleased to announce a new Quick Find (Ctrl+F) extension in the <a title=\"VS Blog: Productivity Power Tools introduces Find, Organize Imports for VB, Enhanced Scrollbar, Middle-Click Scrolling and more!\" href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/productivity-power-tools-introduces-find-organize-imports-for-vb-enhanced-scrollbar-middle-click-scrolling-and-more\/\" target=\"_blank\" rel=\"noopener\">February release<\/a> of the <a title=\"VS Gallery: Productivity Power Tools\" href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/d0d33361-18e2-46c0-8ff2-4adea1e34fef\/\" target=\"_blank\" rel=\"noopener\">Productivity Power Tools<\/a>.\u00a0 This is the first version of the Quick Find extension and we are planning to make some improvements to it in future Power Tools releases, but this blog post describes the reasons for the extension, its functionality, where we\u2019re planning to take it in future versions, and how to send us feedback.<\/p>\n<h2>Why make a Find extension?<\/h2>\n<p>Find is a feature that is used day in and day out by the vast majority of developers, and yet the built-in Find dialog leaves something to be desired.\u00a0 In fact, Find is the code editor feature that generates the most suggestions on Connect and has for several versions.\u00a0 We haven\u2019t made significant changes to Find since VS 2005 and felt that with the Productivity Power Tools, the time was right to act on your feedback.<\/p>\n<p>Our overarching goal is that unlike VS 2010 Find\/Replace, the Power Tools Quick Find\/Replace should be lightweight, quick, and simple.<\/p>\n<table style=\"width: 604px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td align=\"center\" valign=\"top\" width=\"265\">\n<p align=\"center\"><strong>VS 2010 Find<\/strong><\/p>\n<\/td>\n<td align=\"center\" valign=\"top\" width=\"337\">\n<p align=\"center\"><strong>Power Tools Find<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"265\">Covers too much code<\/td>\n<td valign=\"top\" width=\"337\">Occupies very little space<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"265\">Jumps around during searches<\/td>\n<td valign=\"top\" width=\"337\">Remains stationary<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"265\">No immediate results<\/td>\n<td valign=\"top\" width=\"337\">Uses an incremental search for nearly instant results<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"265\">Uses outdated regular expression syntax<\/td>\n<td valign=\"top\" width=\"337\">Uses familiar .NET regular expression syntax<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>What can it do today?<\/h2>\n<h4>Basic Quick Find\/Replace<\/h4>\n<p>Pressing Ctrl+F will invoke the extension\u2019s Quick Find.\u00a0 Incremental Search users will also notice that Ctrl+F and Ctrl+I are one and the same \u2013 our hope is that the extension is fast and light enough to replace the built-in Incremental Search.\u00a0 The UI should always sit in the upper right corner of the editor and includes, from left to right:\u00a0 toggle to switch to Replace, Find What box, Find Previous button, Find Next button, and Close button.\u00a0 It looks like this:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2011\/03\/5584.image_thumb_5CF15F72.png\"><img decoding=\"async\" style=\"padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;\" title=\"Quick Find extension UI\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2011\/03\/5584.image_thumb_5CF15F72.png\" alt=\"Quick Find extension UI\" width=\"287\" height=\"36\" border=\"0\" \/><\/a><\/p>\n<p>Pressing Ctrl+H will invoke the extension\u2019s Quick Replace.\u00a0 Its UI has everything from Find plus a Replace With box, Replace Next button, and Replace All button.\u00a0 It looks like this:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2018\/10\/1200.image_2295E991.png\"><img decoding=\"async\" style=\"padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;\" title=\"Quick Replace extension UI\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2018\/10\/8233.image_thumb_5A682DB4.png\" alt=\"Quick Replace extension UI\" width=\"510\" height=\"36\" border=\"0\" \/><\/a><\/p>\n<p>Results are found incrementally and all matches are highlighted almost instantaneously in the editor.\u00a0 The default highlight color is yellow and is customizable through Tools-&gt;Options-&gt;Environment-&gt;Fonts and Colors-&gt;Find Highlight (Extension).\u00a0 The Enhanced Scrollbar extension, also new in this power tools release, also displays markers that show where all of the results are in your file.\u00a0 These are orange by default and customizable through Tools-&gt;Options-&gt;Productivity Power Tools-&gt;Enhanced Scroll Bar-&gt;Find results color.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2018\/10\/2476.image_721F651A.png\"><img decoding=\"async\" style=\"padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;\" title=\"Find extension with highlights\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2018\/10\/7288.image_thumb_5E25D284.png\" alt=\"Find extension with highlights\" width=\"630\" height=\"480\" border=\"0\" \/><\/a><\/p>\n<h4>Find History and Options<\/h4>\n<p>The Quick Find extension also includes a search history and common options in the Find What dropdown box:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2011\/03\/3060.image_thumb_14474AD4.png\"><img decoding=\"async\" style=\"padding-left: 0px; padding-right: 0px; padding-top: 0px; border-width: 0px;\" title=\"Quick Find extension history and options\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2011\/03\/3060.image_thumb_14474AD4.png\" alt=\"Quick Find extension history and options\" width=\"283\" height=\"218\" border=\"0\" \/><\/a><\/p>\n<p>The \u201cUse Regular Expression\u201d option has also received a long-awaited update:\u00a0 it now uses .NET regular expressions!\u00a0 This is one of the most common requests we receive for the Find dialog, so we\u2019ve added it to the extension\u2019s Quick Find.\u00a0 We are also hoping to update the regular expressions in the built-in Find in Files dialog; that part is much harder to do via extensibility and is not available yet, but it is on our to-do list.<\/p>\n<p>Clicking \u201cAdvanced Options\u2026\u201d or pressing Ctrl+Shift+F will take you to the built-in Find in Files dialog.\u00a0 To reach the built-in Quick Find, just go to Find in Files and press Ctrl+F.\u00a0 Similarly, you can reach Replace in Files with Ctrl+Shift+H and Quick Replace with Ctrl+Shift+H, Ctrl+H.<\/p>\n<p>Last but definitely not least, there is a \u201cSend Feedback\u2026\u201d link at the bottom of the Find What dropdown.\u00a0 This allows you to directly e-mail the team that built this extension, including the developer, tester, and program manager.\u00a0 We read every e-mail and are already planning an update to the extension based on your feedback.\u00a0 We would love to hear from you!<\/p>\n<h2>Where is the extension going in the future?<\/h2>\n<p>Based on your feedback and our bug backlog and \u2019wish list\u2019 of mini-features to add, we\u2019re planning an update to the Find extension in the next Pro Power Tools release.\u00a0 This is not an exhaustive list and not all of these will make it into the very next version, but we\u2019ve highlighted the top issues we hope to address.<\/p>\n<h4>Find in more scopes<\/h4>\n<p>By far the #1 piece of extension feedback so far is about scope.\u00a0 The current version of the extension always uses the current document or window as its scope, but you can still do a find in selection, current project, entire solution, etc. by going to Find in Files (Ctrl+Shift+F) or, for selection and current block, the built-in Quick Find (Ctrl+Shift+F, Ctrl+F).\u00a0 We have heard loud and clear that being able to search in other scopes is critical and we\u2019ll be working that into Quick Find in the next Pro Power Tools update (release date still TBD \u2013 watch this blog for news!).<\/p>\n<h4>More complete keyboard support<\/h4>\n<p>We also knew when we released this extension that its keyboard support is not yet complete, and that\u2019s something we plan to address.\u00a0 This includes:<\/p>\n<ul>\n<li><strong>Keyboard shortcuts for everything:\u00a0 <\/strong>Some buttons (Find Previous, Find Next, Close) already have shortcuts, but we plan to add them for the rest of the buttons (including Replace Next and Replace All) and for the search options.<\/li>\n<li><strong>Keyboard navigation of the dropdown:<\/strong>\u00a0 There is a known bug where Alt+DownArrow will correctly open the history\/options dropdown but the arrow keys won\u2019t do anything after the dropdown is open.\u00a0 And when the dropdown is closed, the unmodified arrow keys should cycle through your search history.\u00a0 We\u2019re planning to fix both of these issues in the future.<\/li>\n<li><strong>Tab\/Shift+Tab navigation:<\/strong>\u00a0 Several of you have noted that it takes three tabs to get from the Find What box to the Replace With box.\u00a0 We\u2019re reducing this to a single tab in the next version.\u00a0 We also intend to fix the known bug that prevents Shift+Tab from moving out of the Find What and Replace With boxes.<\/li>\n<\/ul>\n<h4>Number of Matches<\/h4>\n<p>After you\u2019ve done a search, we plan to add an overlay that says \u201cx of y\u201d (but with numbers), where x is your current match and y is the total number of matches.\u00a0 This should also make it clearer when there are no matches and when your search passes the end of your document.<\/p>\n<h2>Send us feedback!<\/h2>\n<p>We\u2019re prioritizing our idea list and adding new suggestions to that list based on your feedback, so we would love to hear from you!\u00a0 Positive and negative comments, mini-feature suggestions and bug reports, and any other thoughts you have are more than welcome.\u00a0 And if you choose to disable the extension (Tools-&gt;Options-&gt;Productivity Power Tools-&gt;All Extensions), we would ask that you send us a quick e-mail so we know why and can hopefully address your concerns in a future version.\u00a0 Just use the \u201cSend Feedback\u201d link in the Find dropdown or contact us directly at <a href=\"mailto:VsFindFeedback@microsoft.com\">VsFindFeedback@microsoft.com<\/a>.<\/p>\n<p>Enjoy!<\/p>\n<p>Brittany Behrens\nProgram Manager, Visual Studio Editor team &amp; Quick Find extension<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re pleased to announce a new Quick Find (Ctrl+F) extension in the February release of the Productivity Power Tools.\u00a0 This is the first version of the Quick Find extension and we are planning to make some improvements to it in future Power Tools releases, but this blog post describes the reasons for the extension, its [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[294,526,13],"class_list":["post-1623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-extensions","tag-productivity","tag-visual-studio-2010"],"acf":[],"blog_post_summary":"<p>We\u2019re pleased to announce a new Quick Find (Ctrl+F) extension in the February release of the Productivity Power Tools.\u00a0 This is the first version of the Quick Find extension and we are planning to make some improvements to it in future Power Tools releases, but this blog post describes the reasons for the extension, its [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/1623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=1623"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/1623\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=1623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=1623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}