How to setup SharePoint Search for text within Visual Studio and Text files (like *.cs and *.txt)


  • Hi All,

    How do I setup SharePoint Online search so I can search for text within Text and cs Visual Studio files (like Notes.txt or Program.cs)? All the files are located within our OneDrive for Business locations. I know how to setup SharePoint search to focus on the OneDrive location using "Result Sources" and "Query Rules", but it doesn't return results for *.txt or *.cs files.

    For example, I would like to return all files that include the text "SPFarm farmObject = SPFarm.Local". I know there are over eight *.cs files that include this text but nothing is returning. I would also like to add the Text and CS files types to the Result Type menu.

    I hope you can help

    • Edited by ceBlueSky Friday, April 21, 2017 3:09 PM
    Friday, April 21, 2017 2:43 PM

All replies