{"id":23595,"date":"2016-10-10T09:00:04","date_gmt":"2016-10-10T13:00:04","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/?p=23595"},"modified":"2019-02-14T15:56:14","modified_gmt":"2019-02-14T23:56:14","slug":"announcing-general-availability-for-code-search","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/announcing-general-availability-for-code-search\/","title":{"rendered":"Announcing General Availability for Code Search"},"content":{"rendered":"<p>Today, we are excited to announce the general availability of Code Search in Visual Studio Team Services. Code Search is available for Team Foundation Server \u201c15\u201d as well.<\/p>\n<p>What\u2019s more? Code Search can be added to any Team Services account for free.  By installing this extension through the Visual Studio Marketplace, any user with access to source code can take advantage of Code Search.<\/p>\n<p>With this release Code Search now understands Java. Not only can you perform full text matching, for C#, C, C++, VB.NET and Java it understands the structure of your code and allows you to search for specific context, like class definitions, comments, properties, etc across all your TFVC and Git Projects. We\u2019ll be adding support for additional languages in the future.<\/p>\n<h3>Enabling Code Search for your VSTS account<\/h3>\n<p>Code Search is available as a free extension on <a href=\"https:\/\/marketplace.visualstudio.com\/items\/ms.vss-code-search\">Visual Studio Team Services Marketplace<\/a>. Click the install button on the extension description page and follow instructions displayed, to enable the feature for your account.<\/p>\n<p>Note that you need to be an account admin to install the feature. If you are not, then the install experience will allow you to request your account admin to install the feature.<\/p>\n<p>Installation of the extension triggers indexing of the source code in your account. Depending on the size of the code base, you may have to wait for some time for the index to get built.<\/p>\n<p>You can start searching for code using the search box on the top right corner or use the context menu from the code explorer.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/SearchBox.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/SearchBox.png\" alt=\"SearchBox\" width=\"1366\" height=\"768\" class=\"alignnone size-full wp-image-23655\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Enabling Code Search on Team Foundation Server \u201c15\u201d<\/h3>\n<p>Code Search is available for Team Foundation Server starting with <a href=\"https:\/\/aka.ms\/tfsvnext\">TFS &#8220;15&#8221;<\/a>. You can configure Code Search as part of the TFS Server configuration. For more details see <a href=\"https:\/\/aka.ms\/installsearchontfs\">Administer Search<\/a>.<\/p>\n<p>Note that you need to be a TFS admin to configure Search as part of TFS.<\/p>\n<p>Installation of the Code Search extension triggers indexing of the source code in a collection. Installation can be initiated for all collections by a TFS admin during configuration of the Search feature or post configuration by Project Collection admins for their respective Collections. The latter can be achieved by navigating to the Marketplace from within your TFS instance. Depending on the size of the code base, you may have to wait for some time for the index to get built.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/InstallCSOnTFS.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/InstallCSOnTFS.png\" alt=\"InstallCSOnTFS\" width=\"906\" height=\"623\" class=\"aligncenter size-full wp-image-23635\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Search across one or more projects<\/h3>\n<p>Code Search enables you to search across all projects (TFVC &amp; Git), so you can focus on the results that matter most to you.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/MultipleProjects.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/MultipleProjects.png\" alt=\"MultipleProjects\" width=\"1369\" height=\"771\" class=\"aligncenter size-full wp-image-23636\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Semantic ranking<\/h3>\n<p>Ranking ensures you get what you are looking for in the first few results. Code Search uses code semantics as one of the many signals for ranking; this ensures that the matches are laid out in a relevant manner E.g. Files with a term appears as definition are ranked higher.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/SemanticRanking.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/SemanticRanking.png\" alt=\"SemanticRanking\" width=\"1327\" height=\"770\" class=\"aligncenter size-full wp-image-23665\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Rich filtering<\/h3>\n<p>Get that extra power from Code Search that lets you filter your results by file path, extension, repo, and project. You can also filter by code type, such as definition, comment, reference, and much more. And, by incorporating logical operators such as AND, OR, NOT, refine your query to get the results you want.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/RichFiltering.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/RichFiltering.png\" alt=\"RichFiltering\" width=\"1313\" height=\"771\" class=\"aligncenter size-full wp-image-23645\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Code collaboration<\/h3>\n<p>Share Code Search results with team members using the query URL. Use annotations to figure out who last changed a line of code.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/CodeCollaboration.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/CodeCollaboration.png\" alt=\"CodeCollaboration\" width=\"1367\" height=\"769\" class=\"aligncenter size-full wp-image-23615\" \/><\/a><\/p>\n<h2><\/h2>\n<h3>Rich integration with version control<\/h3>\n<p>The Code Search interface integrates with familiar controls in the Code Hub, giving you the ability to look up History, compare what\u2019s changed since the last commit or changeset, and much more.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/VersionControlIntegration.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/10\/VersionControlIntegration.png\" alt=\"VersionControlIntegration\" width=\"1366\" height=\"1051\" class=\"aligncenter size-full wp-image-23605\" \/><\/a><\/p>\n<p>Refer to help <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=698650\">documentation<\/a> for more details.<\/p>\n<h2><\/h2>\n<h3>Got feedback?<\/h3>\n<p>How can we make Code Search better for you? Here is how you can get in touch with us<\/p>\n<ul>\n<li>You can <a href=\"mailto:vsosrch@microsoft.com\">eMail us<\/a> or<\/li>\n<li><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=698651\">Ask questions on support forum<\/a> or<\/li>\n<li><a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=698652\">Post your suggestion ideas<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Thanks,\nSearch team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we are excited to announce the general availability of Code Search in Visual Studio Team Services. Code Search is available for Team Foundation Server \u201c15\u201d as well. What\u2019s more? Code Search can be added to any Team Services account for free. By installing this extension through the Visual Studio Marketplace, any user with access [&hellip;]<\/p>\n","protected":false},"author":142,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[228,253,229,1,225],"tags":[],"class_list":["post-23595","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-admin-licensing","category-azure-devops-server","category-community","category-devops","category-git"],"acf":[],"blog_post_summary":"<p>Today, we are excited to announce the general availability of Code Search in Visual Studio Team Services. Code Search is available for Team Foundation Server \u201c15\u201d as well. What\u2019s more? Code Search can be added to any Team Services account for free. By installing this extension through the Visual Studio Marketplace, any user with access [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/23595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/142"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=23595"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/23595\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=23595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=23595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=23595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}