📜 ⬆️ ⬇️

Regex Tester extension now supports Visual Studio 2012

Introduction


Hello! Approximately 1.5 years have passed since the last update of my Regex Tester extension, I previously wrote posts about its creation and update . After that, I stopped following the fate of the expansion and answered questions in the gallery. At work, for the last 3 years, I have been in demand as a Java developer, I don’t follow the .NET and C # especially and thought that without my support, the extension will be bent and other solutions will become more popular. A couple of months ago, a colleague reminded me about him and asked me to add support for VS 2012. This reminder pushed me to go to the gallery and check its current status. I was shocked because the tags: “Regular Expression” and “RegEx” were in first place in terms of popularity, and the number of downloads was about 30 thousand.

Rebirth


Unfortunately, I was busy and could not spend much time on it. Thinking I decided that in this case it would be the most appropriate solution to open the source code and give it a link in the gallery. In my heart I hoped that there would be someone willing to support and develop it. I chose Apache 2.0 for the license, time went on, but there were no applicants, until at one moment I was on Issue for GitHub to implement a new functionality. Forces for the independent development of the extension gave me an excellent post about Open Source , although it is completely different, but it made me get together and take time for a dying project that brings and probably will still benefit the developers.
In general, I slowly started developing on GitHub, for better perception, the previous version looked like this , and the new one on Windows 8 is displayed like this:
image

What's new


1. Added support for Visual Studio 2012 - the migration of the extension project from VS 2010 to 2012 fell with an error, there is an easy solution in the internet, which describes which lines need to be corrected with pens in the project file after the migration.
2. Unification of GUI styles and fixing minor problems - the overall style was adapted to VS 2012, changed CheckBoxes, improved Tooltips and a few other minor improvements , the devil is in the details .
3. Added the ability to save the results - I was asked about this a long time ago, I decided to do it first.
4. Added a new feature "Output Mode", now instead of the result of working out the utility, you can get a ready-made example of C # code for your case, I think it’s better to try once to understand how it works.

Conclusion


I tried hard not to rewrite the code, which was already 3 years old, since I consider it fairly stable , not three works , in some places I just made easy refactoring. When implementing a new functional, I used patterns that I tried to separate from the GUI, so that in order to add new features, I needed to implement only the necessary interface and, if necessary, at least tweak the GUI, which I tried to make as simple and not overloaded.
I would like to say thank you to everyone who directly or indirectly helped in the development and rebirth of the Regex Tester extension. I am sincerely glad that the extension has found its place in the gallery and I hope that it brings developers benefit.

')

Source: https://habr.com/ru/post/187600/


All Articles