Until today, I wasn't aware of the ability to search for code with special symbols within our normal search. It's actually easy:
Instead of #include
, search for code:#include
.
(There appear to be some limitations on this, since HTML "tags" appear to be stripped.)
It's clear that nobody really knows about this. Of course, I already answered this question with this solution, but I also think it should be mentioned prominently in the search help, especially the "Advanced Search Tips".
The hascode:
operator is also unlisted. It's not as helpful, but you can use it to avoid all the questions with no code, at least now that you know about it.
"$foo"
in it, not$foo
? This lack of polish clearly indicates why it should not be documented and used. Foo on this feature! Foo I say. Dollar sign.