How to highlight occurrences of a search term in text in Visual Studio 11 / 2012? - visual-studio-2012

How to highlight occurrences of a search term in text in Visual Studio 11 / 2012? There are solutions in VS 2010 and 2008, any one know of one for VS2012?

The fix mentioned in the solution is to download the SelectionHighlight.vsix file then.
Change the Extension to .zip
Open the zip file and edit the manifest file in a text editor.
Change the Visual Studio Version attribute to 11.
After saving the file back into the zip, change the extension back to .vsix
Just move forward with installing the file and you are set.

okay... just checked a plugin for VS2010 and they have a "Fix" for 2012. Check the Q and A here: http://visualstudiogallery.msdn.microsoft.com/4b92b6ad-f563-4705-8f7b-7f85ba3cc6bb

Related

the selected file is not a valid solution file in microsoft visual studio 2012

I am using microsoft visual studio 2012, I double my solution file then get this error, I have tried by opening the file>Open>Project/Solution, then select the file name, but it still could not work and get the error as below:
the selected file is not a valid solution file
Try to open your .sln file.
most probably file may contain Null values or empty.
In my case it works after replacing .sln file with early backup .sln file.
Or try to get this file in TFS working version.
because it contain all your solution related data.
eg. VS version, class library details...

Use Visual Studio 2012 and cant find project property pages

I Use Visual Studio Ultimate 2012 and try open "project property pages".
I need open the Properties of the project, go to Configuration Properties → General → Platform Toolset. Here switch to any older version of the toolset: Visual Studio 2012 (v110xp), or any other choice.
This window should look like this:
| "Configuration Properties"
-|General
-|Debugging
-|VC++ Directories
-|C/C++
--|General
--|Optimization
--|Preprocessor
--|Code Generator
--|Language
--|Precomplied Header
--|Output files
--|Browse information
--|Advanced
--|All option
--|Command Line
-|Linker
...
But my version looks like this:
"project property pages
-|Application
-|Build
-|Build events
-|Debug
-|Resourses
-|Services
-|Settings
-|Reference Path
-|Signing
-|Security
-|Publish
-|Code Analysis
How do I get to the window?
I think it's a bug on VS2012, it always do this to me.
You must use older toolset (or install vs2013).
As you can't change it in VS2012 (property doesn't available), you must change manually project file. Open vcxproj file in a text editor, and change all occurences of
<PlatformToolset>v110</PlatformToolset>
by
<PlatformToolset>v100</PlatformToolset>
Then save and reopen the project in VS2012

Change TODO item color in Visual Studio 2012 with Resharper 8

After installing Resharper 8 on Visual Studio 2012 my TODOs are now a retina-searing blue of which this screenshot does not do justice:
I've found similar questions here and here they don't seem to apply to VS2012 and/or RS8, as there is no "Resharper Todo Item" nor any other Resharper items under the Display Items for Fonts & Colors.
Just to post a possible workaround if somebody has the same behavior - apply actions from the following article. It looks oddly but works.
Close all Visual Studio instances
Open C:\Program Files (x86)\Microsoft Visual Studio {VS
version}\Common7\IDE\Extensions\extensions.configurationchanged file
Type anything there
Save the file
Open VS and check Fonts and Colors in Tools | Options | Environment
Navigate to environment settings using Visual Studio (Tools -> Options -> Environment -> Fonts and Colors) and change the colour of the TODO items in the text editor. Scroll to the item in the "Display items" list which shows as "Resharper TODO item"
A Visual Studio crash and restart later, Resharper display items are suddenly showing up under fonts and colors. I contacted Jetbrains and apparently this was a verified bug, though that link is now dead which would lead me to believe that they fixed it, but for some reason this answer is still getting upvoted so maybe not.
Maybe the next upvoter can edit this answer or provide a comment with the current state of affairs?
This is not a Win 8.x issue; I am using Windows 7 and encountered the problem when I applied Resharper 8 to VS2013. The link that Alexander posted resolved the problem for me. I did, however, have to copy the file to My Documents, make my edit there (a simple hash symbol) and then copy it over the source location.
Adding an empty line in the file extensions.configurationchanged worked for me.
Visual studio 2013 with Resharper 10

Show file type icons on tabs on visual studio 2012

I wass looking for quite some time now how I could see the file type icon of each file I have opened in visual studio 2012 tab well, like it was shown on previous versions of visual studio. This was completely removed from vs 12, couldn't find any option enabling this. This is something extemely usefull when having many open files.
I found that this option exists on the registry!
So you go here:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\DialogPage\Microsoft.CustomDocWell.Options
and change the IconInTabs property from false to True!
File type icons are displayed again next to each tab!!!!
Edit: In order for this to work you must have installed Productivity Power Tools 2012 plugin

How to write latex comments in visual studio 2012

I want to write comments in visual studio (2012 ultimate) that contain latex syntax.
There is some plug-in to add to visual studio that will enable me to write comment in latex and then see it as latex (e.g. pop up window when im pressing some key shortcut or moving over the comment with the mouse)?
I found that someone asked it before at:
Latex plugin for visual studio 2010
But this didn't help me.
I'm also found this:
http://visualstudiogallery.msdn.microsoft.com/e216ec81-730b-4022-8305-25c39eb1f820
But this didn't help me either (I got a message of "This extension is not installable on any currently installed products").

Resources