visual studio find in files - how to search in office documents? (e.g. docx) - visual-studio

we want to add docx files to our visual studio solution.
How can we achieve that visual studio "find in files" recognizes the content in office documents? (e.g. docx)
Visual studio 2013 does not search docx or doc file formats, at least it isn't able to do so.
Is there an extension that searches office file types?
Or is there a different way to add our documentation with pretty formatted text to a VS solution? We want to use versioning and "find in files" for our documentation.
Best regards
Oliver

Right click the project and select "ADD" and then "Existing Item". THere, on the right side, you will find a drop down where you can select all files. That way you can get any file to the solution.

Related

How to make Visual Studio solution explorer search within file contents

I'm looking for the way to search all files that containing the specified key word in Visual Studio 2019 solution explorer. At least in scope of current git repo, but it would be better to check every repo at same search operation.
I saw How to make solution explorer search only file names but in my Visual Studio 2019 I can't see any combobox there, just regular editbox.
Could anybody advice?
Use the inbuilt Find features (Ctrl-F or Ctrl-Shift-F) to search for keywords in your code. You are only searching the solution explorer for files by name when you search the way you are showing in your question here.
See here for the MS docs on this feature:
https://learn.microsoft.com/en-us/visualstudio/ide/find-in-files?view=vs-2019

Custom file sorting in VS2010 Solution Explorer

Is there any way to force Solution Explorer in Visual Studio 2010 to sort files alphabetically but in order *.h, *.inl and *.cpp?
I want to have
Dummy.h
Dummy.inl
Dummy.cpp
Emmy.h
Emmy.cpp
Grammy.h
Grammy.cpp
instead of
Dummy.cpp
Dummy.h
Dummy.inl
Emmy.cpp
Emmy.h
Grammy.cpp
Grammy.h
No, there is no such feature built in.
I don't know of any extension or add-in that supports this, either, but I imagine that you could create one. Get started with the Visual Studio SDK, or browse the Visual Studio Gallery for something that serves a similar purpose.
However, the Solution Explorer does support grouping related files (such as headers, resources, and code files) into virtual folders. Turn that feature on by deselecting the second button to the left at the top of the Solution Explorer window labeled "Show All Files".

How to find a file by name in the filter tree in Visual Studio Express?

Suppose I know that a file of a certain name is in a project in Visual C++ 2010 Express. I can see it in the "Show All Files" list. Is there any way to find out where it lurks in the "filter" hierarchy, short of laboriously opening each folder and looking? (As an example of what I would wish for, in Xcode one can right-click on a file and choose "Reveal in Group Tree".)
VsCommands is an extension to Visual Studio that has a 'locate in solution' option for a file that is already open in your editor.

Mark or highlight files in Visual Studios Solution Explorer

is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ?
I searched the Visual Studio Gallery but didn't find anything.
Thanks!
To highlight only the active (open and viewed) item in the solution explorer (without any add-ins):
Go to Tools -> Options -> Projects And Solutions
Then Check the Track Active Item in Solution Explorer option.
But if you really want to use any extension in order to mark the files you already checked/reworked so that you get an better overview or whatever then I would suggest ReSharper which has a number of features assisting navigation and search.
For example, there is a To-do Explorer which helps navigation between to-do items within the solution. You can also create custom filters in Resharper To-do Explorer. After creating custom filters according to your need, you will have to leave comments wherever required but you won't have to open all the files to read the comments.
I found the extension Visual Studio Tags on codeplex that can do what we need, but there's not (yet) visual support (ie, diferent colors in solution explorer).

How to jump to a file in the Source Control Explorer in Visual Studio

I love the Solution Explorer > Right-click > "Open Containing Folder" feature of the PowerCommands extension for Visual Studio 2010. I want the equivalent of a "Jump to location in Source Control Explorer" feature. How can I find out the location in TFS of a given open file, or a file in the solution explorer (or a file in the solution navigator in you have the Productivity Power Tools extension)?
The best answer would be a couple of mouse clicks and no keyboard. Next best answer would be a hotkey mapping.
The only solution that I have found so far is to use the Productivity Power Tools extension which has the feature "Find in Source Control". A file in the results list can be right-clicked to "Open folder in Source Control Explorer". The drawbacks to this solution is that is takes many clicks, and the search results can match more than one file if files exist with the same name in different folders.
There is a stand-alone extension that you can download, called Locate in TFS, within Visual Studio.
"Locate in TFS" on TFS Gallery
"Locate in TFS" on GitHub
This also works on files that you "Exclude from source control", as many developers do with the web.config files.
psulek's post, above, mentions this as part of VSCommands, but I prefer the stand-alone extension.
Try Visual Studio extension VSCommands for Visual Studio 2012. It has feature called Locate in TFS. This will add new button to Solution Explorer Locate in TFS which opens active selected file/folder in TFS Source Control Explorer.
Feature request has been raised with Visual Studio team. Read here
I know it's probably too late. See TfsExt extension for vs2010
I'm not sure if it's possible, but it's a good suggestion.
These two examples show how to use the Visual Studio Extensibility APIs to access the TFS Source Control Explorer APIs.
http://blogs.msdn.com/b/edhintz/archive/2006/02/03/524312.aspx
http://blogs.msdn.com/b/bharry/archive/2008/07/09/working-on-tfs-sdk-improvements.aspx
For Visual Studio 2013 try lightweight extension TfsExt13

Resources