I have a form which has UI validations. But sometimes I need to bypass UI validation and enable server side validation. For that I have to manually comment and uncomment certain pieces of code, which becomes very tedious. Is there any tool available that can automate this task? The ideal tool would help me run a single command in terminal and it should get the job done.
Use IntelliJ's structural search and replace. jetbrains.com/help/idea/2016.1/structural-search-…. You should be able to run in non-graphical way (CLI) way too.
Stephen Florentino
Full StackOverflow Developer
An alternate solution would be to use a feature toggle for the UI validation.