I have hundreds of files with different content like as
public delete(entity: Model1): Observable<any> {
public delete(entity: ModelABC): Observable<any> {
and I want to add one more parameter in the method like as below using VS code replace:
public delete(entity: Model1, simulate: boolean): Observable<any> {
public delete(entity: ModelABC, simulate: boolean): Observable<any> {
I have tried with below expression. but, It does not work correctly.
Any solution? How can I replace all the matching line with correct replacement?
2
Answers
This one helped me to replace all the files with new parameter:
two error here :
So, to do what you want, you’ll need something like :