Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

I want to search my questions for a question that uses the C# key word is new.

When I search user:me new I get matches that are not code. Is there a way to just search code?

Edit: Since it seems that this cannot be done currently, I am switching it to a feature request. Since is will not get past the stop word filter, I am changing the example to use new.

share|improve this question
Are you asking for how to search for keywords that happen to be stop words, or how to search for text that is specifically inside of indented code blocks? – Grace Note Jun 30 '10 at 15:52
In code blocks. – Vaccano Jun 30 '10 at 16:23
@NickCraver does the [status-completed] tag mean you're not still testing it? I ask because I've found a bug with it but I'm not sure if I should post it on meta if its "not done" – Some Helpful Commenter May 15 '12 at 16:34
up vote 11 down vote accepted

As lunboks notes you can search code blocks with the code: search term.

e.g. code:"new"

So you should be able to use user:me code:"new" to find what you're looking for.

It doesn't appear to search bodies or titles, but I couldn't find any documentation for it.

share|improve this answer
Very very Cool! Thanks for posting this! – Vaccano May 15 '12 at 16:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .