user4936583
user4936583

Reputation: 3

Find and Replace brackets () with new Line in Visual Studio

I have to add some javascript code in VS 2013.

Before (Now)

Layout.init();

After (What I want)

Layout.init();
Side.init();

If there were no () I could do it with \n but VS do not find them. How can I change them like latter?

edit: I want to change all my project in every page with ctrl+H;

I can change with ctrl+H and regex enabled:; find:

abc

replace:

abc
def

with this regex replace:

abc \n def

when I try to change with () VS don't find any of them...

Upvotes: 0

Views: 1633

Answers (2)

Peter Macej
Peter Macej

Reputation: 5577

I recommend you free Multiline Search and Replace Visual Studio extension. It supports Find/Replace in files.

Upvotes: 1

S.Krishna
S.Krishna

Reputation: 876

I'd suggest using Notepad++ > 'Find in Files' option to replace text in bulk. It works for files inside a specific directory or if needed, can traverse all sub-directories and replace them. See the below snapshot for settings needed

find and replace of notepad++

Upvotes: 1

Related Questions