Advanced Search Operators in Search Expressions

Visual Studio 2015
 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Advanced Search Operators in Search Expressions on docs.microsoft.com. By using advanced search operators, you can refine your search for content by creating more complicated search expressions from simpler ones. As the following table shows, these operators restrict the context in which a query runs.

System_CAPS_ICON_warning.jpg Warning

You must enter advanced search operators with a final colon and no intervening space before the colon for the search engine to recognize them.

To search forUseExampleResult
A term in the title of the topictitle:title:binaryreaderTopics that contain “binaryreader” in their titles.
A term in a code examplecode:code:readdoubleTopics that contain "readdouble" in a code example.
A term in an example of a specific programming languagecode:vb:code:vb:stringTopics that contain “string” in a Visual Basic example.
A topic that is associated with a specific index keywordkeyword:keyword:readbyteTopics that are associated with the “readbyte” index keyword.

You can use the code: operator to find content about any of several programming languages, but it returns results only for content that is marked up with a specific programming language. The following table lists the programming languages that this operator supports:

Programming LanguageUse
Visual Basiccode:vb

or

code:visualbasic
C#code:c#

or

code:csharp
C++code:cpp

or

code:c++

or

code:cplusplus
F#code:f#

or

code:fsharp
JavaScriptcode:javascript

or

code:js
XAMLcode:xaml

Logical Operators in Search Expressions
Full-Text Search Tips

Show: