Good idea, but I had the same issues as fourpastmidnight - a VS exception was thrown and the IDE did not accept further keyboard input. Needs fixed up, potentially a context menu item added to invoke the tool, some RegEx guidance text in the window and a mechanism to get the text back to the active editor, and it will be a nice addition. Remember the audience: people uncomfortable with regular expressions will be using this, so it should be a helpful novice/intermediate tool rather than aiming for the expert regular expression user.
Basically a good idea but not really usable. - Missing RegexOptions - German keyboard layout not supported - Bad documented how to open the regex editor - Not compatible with ReSharper
CONs: * Doesn't work well with non-english keyboard. * No undo-redo. * Window is Modal (can't copy paste from code windows for example). * Doesn't remember "Matches" string (you have to copy paste it in again and again). * Doesn't play well with ReSharper. * Causes code editor to become unresponsive.
Very useful extension. However, it needs to be fixed. When working in the editor for an extended period of time, it causes an Exception to be thrown in VS2010 (I have Premium installed, with SP1). You can continue to work, however, upon closing the editor, you can no longer type or navigate in the code editor. Navigation keys (e.g. arrows, etc.) either scroll through the document tabs (I have VSPT installed, so hitting the END key, for example, causes the IDE to activate the last tab in the document tab well), or other pieces of UI (such as focusable toolbar items).
When attempting to exit VS, a warning dialog appears that says "MS VS has detected that an operation is blocking user input. This can be caused by a modal dialog or a task that needs to block user interaction. Would you like to shutdown anyway?"
The only recourse is to save everything and exit and restart VS.
Also, can't use numeric keypad input, only the standard QWERTY keypad input.
But a tiny bug reports here: sometimes when I finished editing and testing the Regex in the pop up model window, and click "Accept" or "Cancel", then my VS editor area went zombie mode... I cannot type, delete nor copy. And when I try to close VS, a dialog popped up saying "Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again". The problem is, I was quite sure that I'd closed the regex editor dialog.
Well, just another useless thing :-(
Idea sounds great . But if i cant use it why ist it here?
ANy idread how to bring up this editor with resharper 5 and power toys installed?
As VB a few syntax's to declare and initialize locals and not sure its handling them correctly,
Typing the following Does not bring up editor
Dim r as regex = new regex(
Dim r as new regex(
dim r = new regex(
In order to bring up the editor I need to enter the last ( and then delete it and re-enter it.
ie.
dim r = new regex(<del>( and then the editor will appear.
Nice if you could fix this one.
Just type "new Regex(" (no quotes) and this should make it appear. And if you have:
Regex r = new Regex("foo") <- when hovering over the expression text you should get a tooltip that says "Ctrl Click" to open the Regex Editor.
Its like playing cat and mouse with the tool. The Visual Studio informative tooltips will be ontop of the tooltip you create - impossible to capture.
Why isent there a link/something in a menu so one could open the Regex Editor shown on the projects home page and just start working with the regex expression.
The usability and trying to figure out where the tool is or how to invoke it - is annoying. I havent yet found a way.
At least in the VS2010 RC version - nothing pops up when you type "new Regex(" and the tooltip as pointed before, isent useful since the VS2010 tooltip regarding string will be on top.
My company uses lots of expressions and often the syntax is similar to this:
Regex.Replace(phoneNumber, "^(\\d{3})(\\d{3})(\\d{4})$", "$1-$2-$3");
Can this extension be updated to handle more usage scenarios?
If you have downloaded version 1.0 please update to this version which fixes the mouse cursor bug.
If the extension is still installed in your machine you can go to the "Updates" tab in the Extension Manager dialog -- or you can install from scratch if you have uninstalled version 1.0.
Thanks!
I have the same problem. My mouse cursor disapppears when this extension is enabled. Also happens when the enhanced intellisense extension is enabled (also from MS).
I've the same problem with this extension using the Beta1.
Would really like to use this extension, but so it is unusable.
regards
CFI
P.S. @Stu: The Enhanced IntellisSense works on my PC.
There's a bug in the extension, sorry guys.
@vga (victor, right?): when you get a chance, drop me (noahric @ microsoft) an email, and we can get the extension fixed up. Thanks!
Weird... I can't repro it on my box (which is running an internal build matching the public beta1) -- I'll try again against the bits downloaded from MSDN monday first time, and I'll work with Noah who seems to have find the issue.
We will have this fixed ASAP, thanks for reporting this!
Installing this extension also causes my mouse cursor to totally dissapear from the source code editor and make the whole editor unstable.
I am using Windows 7 RC1 x 64 and VS2010 B1
update: the bug has been fixed now and updated bits will be posted soon to the gallery (i've already sent them out) -- i'll post again here when i get confirmation of this.
thanks everyone for reporting this!!
btw, don't forget to checkout editorsamples.codeplex.com which is the project hosting source code for this extension and others -- please post there any FEATURE requests you would like to see implemented and any BUGS you may find.
Thanks again!
Hi Everyone!
The updated bits are now online. You can download/install v1.1 now which fixes the mouse cursor bug. If you have the extension already installed you should be able to go to the "Updates" tab in the Extension Manager dialog and it should detect that there is an update.
Thanks!