Brian
Brian

Reputation: 7156

Visual Studio: "Current Document" option missing from Quick Replace dialog

This picture says it all. Anyone know what's wrong? Haven't done anything other than restart VS at this point.

Picture says it all

Upvotes: 1

Views: 469

Answers (2)

Sheridan
Sheridan

Reputation: 69985

I don't believe that this is to do with whether Visual Studio running or not... it 'may' also happen when it is running, but VS2010 regularly loses the Current Document option.

I usually bring it back by following the process below:

  1. First search for a word using another option, eg. Current Project, or Entire Solution.
  2. After VS2010 finds a match (usually in another file), I then return to the original file in the designer and the Current Document option has 'usually' returned.

In step 2, it appears to be important that VS2010 finds a match before the Current Document option returns. Usually, the option will re-appear in the other file (where it found a match) and you can set it there or when you return back to your original file.

I hope that helps.

Upvotes: 1

user1706953
user1706953

Reputation:

If your code is actually running and the current document is part of the running code, you cannot modify it : the search and replace won't allow a replace on the current document.

Upvotes: 0

Related Questions