-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A small problem in regex finding #41805
Comments
You can put as many |
发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
发件人: Alexander<mailto:[email protected]>
发送时间: 2018年1月18日 20:14
收件人: Microsoft/vscode<mailto:[email protected]>
抄送: FishyFizz<mailto:[email protected]>; Author<mailto:[email protected]>
主题: Re: [Microsoft/vscode] A small problem in regex finding (#41805)
In fact it just searches the currently opened file when the regex pattern is containing \n . But it searches the whole workspace when the regex pattern is not containing \n .
It made me a little uncomfortable because I was working on the relevancy of Effect.SetCode and Effect.SetReset , I wanted to test if they were always used together (within few lines).And there were over 8000 pieces of scripts.
If you save several files like the one you’ve shown, and open one of them,then try “search in files”. Only the opend file will be searched.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#41805 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AhzzEh6cBteT-0Edy9nqmyLPN70v1qMRks5tLzWQgaJpZM4Riz9B>.
|
I have experienced the same problems with regex searches, mostly when using Find in Folders.
If I repeat the search using Find in a single open file it usually works. |
No, we don't support multiline search across files. #13155 |
(2 theme extensions excluded)
Steps to Reproduce:
1.Text in editor is shown below
2.The regex which would have matched it is shown below but it missed the hit
.SetCode.(\n.*){0,3}SetReset
two asterisks were invisible but made "SetCode" italic. (Markdown Styling)
(The regex pattern worked well with notepad++ and regex101.com)
Update:
I found the results matching the pattern with notepad++. And it matched in VSCode after I opend a file containing one of the results(yeah it only found this one). And it matched two when two editor windows stayed open...
Possible to make it search the whole workspace just like what it does for the regex patterns without "\n"?
Reproduces without extensions: Yes
The text was updated successfully, but these errors were encountered: