How to save default Search and Replace options in VS 2013? - visual-studio-2013

On my install of Visual Studio 2013, the Search and Replace dialog reverts to these settings every time it is launched:
Match Case: Yes
Whole Word: Yes
Scope: Current Project
Those settings don't match my normal workflow so I have change them the first time I do a search and replace after opening VS. Is there a way to change the default settings for this feature?

Related

Replace All not working in Visual Studio 2022

I have the latest version of Visual Studio 2022 (17.4.1) and I am trying to use Replace All to replace text in all files within the project:
This function simply doesn't work (just says 0 occurrences replace). I am within the current project.
However when I use just Replace it works as expected albeit single replacements.
Any workaround to the Replace All functionality?
Pay attention to the area where you do the search and replacement.
Here in the picture you can see that the scope is set to "Current project" which means the replacement will not be done in the files that are out of the current project:
To fix the issue, just click on the "Current project" and change it to either "Entire solution" or "All open documents".

Go To File and Go To Member - de/select Current Document automatically in Visual Studio 2017

I'm trying to wean myself off DPack for navigation because the new Go To feature is great. However, when Current Document is selected, Go To File doesn't work.
What I'm looking for is:
have Go To File (Ctrl+T > f MyFile.cs) work even with Current Document selected (or automatically deselect it)
have Go To Member (Ctrl+T > m MyMember) automatically select Current Document
or customize the Ctrl+Alt+C shortcut to be less cumbersome.
Are any of those possible?
Based on answer from Sergey Vlasov
Install Visual Commander extension to Visual Stuido
Open Visual Studio and go to menu VCmd / Import...
Import Go to member and file commands file
Imports GoToMember and GoToFile commands
Go to menu Tools / Options, open category Environment / Keyboard
Search for VCmd
Assign keyboard shortcut to VCmd.Command01 (belongs to imported GoToMember command)
You can use Alt+\ which is also used by ReSharper, which does same thing.
Assign keyboard shortcut to VCmd.Command02 (belongs to imported GoToFile command)
You can use Ctrl+T or Ctrl+, to override default GoToAll from Visual Studio
Profit!
You can control the Current Document option with my Visual Commander extension. See Go to a member in the current document and Go to a file in the solution commands.

How do I make Visual Studio Replace default to Current Selection?

In Visual Studio 2015 I'm having problems with the Ctrl+H shortcut. In the past if I had text selected and pressed the key combo, the replace box defaults to 'Selection'. But now it's defaulting to 'Current Document'. If I change it to 'Selection' it does not retain that setting next time I Ctrl+H
I'm not sure if I've accidentally changed a setting, or if it's always been like this since I installed the 2015 version
You can go to Tools > Options then in the TreeView, expand the Environment node, and choose Find and Replace and check the box Automatically limit search to selection

Change Default Check-out mode in Visual Studio 2013

When we want to check out a file in VS 2013 this window would show:
I want to change this setting and every time a user wants to check out a file Lock type set to Check In.How I can do this?
thanks
It can be done this way:
Source Control Explorer -> Workspaces
select Workspaces, Then Edit , Then Advanced -> Change Location to Server

Resetting a Visual Studio C++ project's settings

I changed some parameters in a Visual Studio C++ project, and now I don't remember how to "go back". Is it possible to reset the build settings?
I don't mean the IDE settings (menu Tools -> Import and Export Settings).
Am I the only person that can read?!
The only way I know how to reset a "Parameter in a Project's Settings",,,
Is to open the Project file(csproj, vcxproj) with a text editor, and remove the block defining that parameter.
If you wanted to reset the Allow Isolation value, you would delete this text.
<AllowIsolation>true</AllowIsolation>
When project files are loaded by visual Studio, values which are not explicitly defined in the file, are assumed to be using the default. This will only work if the property has a default value(can't change some).
NOTE: This is NOT the same as Deleting the value from the Project Properties Dialog in VS. That method writes a blank value to your project file.
The command "devenv /resetsettings" will restore Visual Studio back to its original factory state.
You can find list of devenv switches here.
You may be able to get the previous/saved version of your Visual Studio project (*.vcproj) from your software version control system.
As many wrote here before, there is a need to reset your visual studio to default settings. Just follow this: https://msdn.microsoft.com/en-us/library/ms247075(v=vs.90).aspx
Here is the awful method I used in Visual Studio 2022.
In "Property" pages, expand the individual configuration you want.
Click "All Options" and find the bold options you had changed.
To restore the defaults, click the options and select "<inherit from parent or project defaults>".
Click "Apply", then it will recover its original value.
Otherwise, you can compare the *.vcxproj with the project templates.

Resources