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.

  • 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 StaffMod
    Jun 30, 2010 at 15:52
  • In code blocks.
    – Vaccano
    Jun 30, 2010 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" May 15, 2012 at 16:34
  • @GraceNote Unfortunately code:"new" is broken, for example typing that into the search bar finds this Q&A and many other posts containing the word "new".
    – Rob
    Aug 30, 2020 at 12:13

1 Answer 1


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.


You must log in to answer this question.

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