{"id":241078,"date":"2023-01-17T07:00:52","date_gmt":"2023-01-17T15:00:52","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=241078"},"modified":"2023-01-18T13:06:54","modified_gmt":"2023-01-18T21:06:54","slug":"new-better-search-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/new-better-search-in-visual-studio\/","title":{"rendered":"New: Better search in Visual Studio"},"content":{"rendered":"<p>Whether you are looking for specific code files, classes, methods, or features and options in the IDE, finding them is not always easy. With multiple ways to search, how would you even know which one to choose? The new All-In-One Search combines code and feature search into the same UI and adds some extra power and productivity to the experience.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-241081\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search.png\" alt=\"Image All in one search\" width=\"1604\" height=\"813\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search.png 1604w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-300x152.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-1024x519.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-768x389.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-1536x779.png 1536w\" sizes=\"(max-width: 1604px) 100vw, 1604px\" \/><\/a><\/p>\n<p>To enable the new search experience, go to\u00a0<strong>Tools &gt; Options &gt; Environment &gt; Preview Features &gt; New Visual Studio Search Experience. <\/strong>After doing that, and restarting Visual Studio, you\u2019ll now see the new search button appear in the title bar, as shown in the screenshot below.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-split-button.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-241079\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-split-button.png\" alt=\"Image All in one search split button\" width=\"449\" height=\"123\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-split-button.png 449w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-split-button-300x82.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p><kbd>Ctrl<\/kbd> + <kbd>T<\/kbd> for code search and <kbd>Ctrl<\/kbd> + <kbd>Q<\/kbd> for feature search stay the same, so your muscle memory remains intact.<\/p>\n<h2>Quickly find files, symbols, and Visual Studio features<\/h2>\n<p>Results for files, types, and members are prioritized in the Code Search tab (<kbd>Ctrl<\/kbd> + <kbd>T<\/kbd>) to help you navigate directly to the places where symbols are used. You can further narrow your search to just one of these filters with the buttons below the search bar or by prefixing your search with \u201cf:\u2019, \u201ct:\u201d, or \u201cm:\u201d.<\/p>\n<p>In addition to fast symbol navigation, the Feature Search tab (<kbd>Ctrl<\/kbd> + <kbd>Q<\/kbd>) provides easy access to the various tools, options, templates, and components available in Visual Studio.<\/p>\n<h2>Preview and edit your code in the search window<\/h2>\n<p>Alongside your list of search results, you\u2019ll see a preview of the selected result. You can glance over to get immediate context of a result without needing to open it and even make tweaks to your code right in the search window. All file types, C# types and members, and C++ types and members are supported in the preview panel.<\/p>\n<p>Configure the preview location by toggling the icons at the top right of the window.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-toggle-buttons.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-241080\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/01\/All-in-one-search-toggle-buttons.png\" alt=\"Image All in one search toggle buttons\" width=\"279\" height=\"84\" \/><\/a><\/p>\n<p>To see the new all-in-one search in action, check out this short demo video:<\/p>\n<p><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/NntM_ahUE54\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><span style=\"font-size: 1rem;\">Try out the new search experience early in the 17.5 Preview builds! <\/span>What do you think about the new search? Let us know in the comments below.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/vs\/preview\/#download-preview\" target=\"_blank\">Download Visual Studio 2022 Preview<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether you are looking for specific code files, classes, methods, or features and options in the IDE, finding them is not always easy. With multiple ways to search, how would you even know which one to choose? The new All-In-One Search combines code and feature search into the same UI and adds some extra power [&hellip;]<\/p>\n","protected":false},"author":105708,"featured_media":241081,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[1404,6311],"class_list":["post-241078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-search","tag-video"],"acf":[],"blog_post_summary":"<p>Whether you are looking for specific code files, classes, methods, or features and options in the IDE, finding them is not always easy. With multiple ways to search, how would you even know which one to choose? The new All-In-One Search combines code and feature search into the same UI and adds some extra power [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/241078","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\/105708"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=241078"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/241078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/241081"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=241078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=241078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=241078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}