How to exclude a specific word when searching

已回答

Is there a way to exclude a specific word when searching?

I want to search a word "foo" but without "foo_bar" in my project.

I tried with "foo -foo_bar", but it didn't work as I expected.

 

Thanks.

0

Hello,

you can use a regex for that.

0

请先登录再写评论。