Jaroslav Urban
Jaroslav Urban

Reputation: 1279

Replace block of text in vs2008

is there any way how to replace block of text (multi-line) in VS2008(VS2005)? So far I know VS2008 supports only single line replacing.

Any tips welcome, cheers X.

EDIT: thanks for tips guys. I was rather looking for some simplier option: like select multiline text, click Ctrl+H, Ctrl+V (copy text from memory) and hit Replace All.

Upvotes: 1

Views: 1597

Answers (2)

JP Alioto
JP Alioto

Reputation: 45117

CTRL+H -> Find Options -> Use Regular Expressions | WildCards. Then you can push on the right arrow next to the "Find What" and "Replace With" textboxes and see what you can use. Descriptions here.

Upvotes: 1

John Saunders
John Saunders

Reputation: 161773

Visual Studio 2005 (and maybe before) supports regular expressions, permitting the selection and replacement of multi-line text.

Upvotes: 2

Related Questions