3

I've installed the vscode-regex plugin and I'm now attempting to get it to work. I have the following javascript and text document side by side in VSCode:

enter image description here

However I'm not getting any matches in the email.txt document. I tried the keyboard commant ctrl + alt + m, but still no love. Any ideas?

Gama11
34.6k9 gold badges92 silver badges107 bronze badges
asked Jul 17, 2018 at 20:09
1
  • 3
    Why the "off-topic" vote to close? Is not "software tools commonly used by programmers" specifically on-topic? Commented Jul 17, 2018 at 20:13

1 Answer 1

7

The instructions of the VS-Code Regex Preview Plugin look straightforward: Just open the test and the sample in side-by-side view, hit the hotkey Ctrl+Alt+M (⌥⌘M).

Unfortunately, I run into the same and could not get it working initially.
The solution: I've used the hotkey, then click the grey link: Test Regex...

enter image description here

Actually, the link and the hotkey do the same. However, the hotkey only works after the matching has been triggered by the link or clicking the actual regex pattern (as mentioned by Mark) first.

answered Jul 17, 2018 at 20:41
Sign up to request clarification or add additional context in comments.

2 Comments

It also seems clicking anywhere in the actual regex expression also triggers the extension to work.
Awesome - I got it - Thanks! I installed it and then installed an update to VSCode and I think the update may have nuked the original install, as I had to reinstall it.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.