{"id":10492,"date":"2015-11-18T08:30:00","date_gmt":"2015-11-18T08:30:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2015\/11\/18\/announcing-public-preview-for-visual-studio-team-services-code-search\/"},"modified":"2022-08-02T04:51:02","modified_gmt":"2022-08-02T12:51:02","slug":"announcing-public-preview-for-visual-studio-team-services-code-search","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/announcing-public-preview-for-visual-studio-team-services-code-search\/","title":{"rendered":"Announcing Public Preview for Visual Studio Team Services Code Search"},"content":{"rendered":"<p><span style=\"font-size: small\">Today, we are excited to announce the public preview of Code Search in Visual Studio Team Services.\u00a0<\/span><\/p>\n<p><span style=\"font-size: small\">With this release you can search for code across TFVC and Git projects in your Visual Studio Team Services account. Not only can you perform full text matching, but for C#,\u00a0C and C++, it understands the structure of your code and allows you to search for specific contexts, like class definitions, comments, properties, etc. We\u2019ll be adding support for additional languages in the future.<\/span><\/p>\n<p>\u00a0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/7181.TFVCSearch136632Bit.png\" alt=\"\" \/><\/p>\n<p><span style=\"font-size: x-small\"><em>[Click on the image to view the high-resolution version]<\/em><\/span><\/p>\n<h1 class=\"HeaderOne\">\n  <span lang=\"EN\">How to enable Code Search preview<\/span>\n<\/h2>\n<p><span style=\"font-size: small\">Code Search preview is available as a <a href=\"https:\/\/marketplace.visualstudio.com\/items\/ms.vss-code-search\">free extension on Visual Studio Team Services Marketplace<\/a>.\u00a0<\/span><span style=\"font-size: small\">Click the <\/span><span style=\"font-size: small\">install<\/span><span style=\"font-size: small\"> button on the extension description page and follow instructions\u00a0displayed, to enable the feature for your account.<\/span><\/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 <span>searching for code using the search box on the top right corner or use the context menu from the code explorer.<\/span><\/p>\n<div>\n<hr align=\"left\" size=\"1\" width=\"33%\" \/>\n<\/div>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/8875.StartSearch136632Bit.png\" alt=\"\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Here are some of the key features of Code Search.\u00a0<span>Please\u00a0<\/span><a href=\"mailto:vsosrch@microsoft.com\">send us feedback<\/a><span>\u00a0on these features as you use the preview release.<\/span><\/p>\n<h1 class=\"HeaderOne\">\n  Search across one or more projects\n<\/h2>\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><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/0044.SearchAcrossProject136632Bit.png\" alt=\"\" \/><\/p>\n<h2>Semantic ranking<\/h2>\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>\u00a0<img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/8831.SemanticRanking136632Bit.png\" alt=\"\" \/><\/p>\n<p>\u00a0<\/p>\n<h1 class=\"HeaderOne\">\n  Rich filtering\n<\/h2>\n<p><span>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.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/1586.RichFilters136632Bit.png\" alt=\"\" \/><\/p>\n<p>\u00a0<\/p>\n<h1 class=\"HeaderOne\">\n  Code collaboration\n<\/h2>\n<p><span>Share Code Search results with team members using the query URL. Use annotations to figure out who last changed a line of code.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/8468.Annotation136632Bit.png\" alt=\"\" \/><\/p>\n<p class=\"HeaderOne\">\n  \u00a0\n<\/p>\n<h1 class=\"HeaderOne\">\n  Rich integration with version control\n<\/h2>\n<p><span>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.<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2015\/11\/2548.VersionControlIntegration136632Bit.png\" alt=\"\" width=\"800\" height=\"615\" \/>\u00a0<\/p>\n<p>Refer to help <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=698650\">documentation<\/a> for more details.<\/p>\n<h1 class=\"HeaderOne\">\n  Got feedback?\n<\/h2>\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<div>\n  Thanks,\n<\/div>\n<div>\n  Search team\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today, we are excited to announce the public preview of Code Search in Visual Studio Team Services.\u00a0 With this release you can search for code across TFVC and Git projects in your Visual Studio Team Services account. Not only can you perform full text matching, but for C#,\u00a0C and C++, it understands the structure of [&hellip;]<\/p>\n","protected":false},"author":166,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[226,1,225],"tags":[],"class_list":["post-10492","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ci","category-devops","category-git"],"acf":[],"blog_post_summary":"<p>Today, we are excited to announce the public preview of Code Search in Visual Studio Team Services.\u00a0 With this release you can search for code across TFVC and Git projects in your Visual Studio Team Services account. Not only can you perform full text matching, but for C#,\u00a0C and C++, it understands the structure of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10492","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\/166"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=10492"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/10492\/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=10492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=10492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=10492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}