Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Visual studio multiline search/replace

Visual studio multiline search/replace

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studioquestion
14 Posts 11 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dan Neely
    wrote on last edited by
    #1

    Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

    Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

    P J U L RaviBeeR 6 Replies Last reply
    0
    • D Dan Neely

      Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

      Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I usually resort to Word to do that. :sigh:

      1 Reply Last reply
      0
      • D Dan Neely

        Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

        Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

        J Offline
        J Offline
        Jim Crafton
        wrote on last edited by
        #3

        I think you have to resort to the regex syntax to do that, assuming that even allows for it.

        ¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! VCF Blog Just Say No to Web 2 Point Oh

        1 Reply Last reply
        0
        • D Dan Neely

          Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

          Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

          U Offline
          U Offline
          Uwe Keim
          wrote on last edited by
          #4

          I do use www.EditPlus.com[^] for such a task.

          • My personal 24/7 webcam - Always live ;-) • Zeta Producer Desktop CMS - Intuitive, completely easy-to-use. Try out and download here now! • Zeta Uploader - Easily send large files by e-mail. Windows and web client available.

          B 1 Reply Last reply
          0
          • U Uwe Keim

            I do use www.EditPlus.com[^] for such a task.

            • My personal 24/7 webcam - Always live ;-) • Zeta Producer Desktop CMS - Intuitive, completely easy-to-use. Try out and download here now! • Zeta Uploader - Easily send large files by e-mail. Windows and web client available.

            B Offline
            B Offline
            Bassam Abdul Baki
            wrote on last edited by
            #5

            UltraEdit for me.

            Web - Blog - RSS - Math - BM

            M 1 Reply Last reply
            0
            • D Dan Neely

              Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

              Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

              L Offline
              L Offline
              l a u r e n
              wrote on last edited by
              #6

              i'm still waiting for "current line highlight" in the vs editor :sigh:

              "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

              RaviBeeR Z 2 Replies Last reply
              0
              • D Dan Neely

                Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

                Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                RaviBeeR Offline
                RaviBeeR Offline
                RaviBee
                wrote on last edited by
                #7

                I first type the multiline source and target content in Notepad and then paste them into the search/replace edit controls in VS. Nonprinting chars show up as little boxes (because I happen to use Tahoma as my system font) in these controls but the replacement works properly. /ravi

                My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                M 1 Reply Last reply
                0
                • L l a u r e n

                  i'm still waiting for "current line highlight" in the vs editor :sigh:

                  "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                  RaviBeeR Offline
                  RaviBeeR Offline
                  RaviBee
                  wrote on last edited by
                  #8

                  Yeah, what a pain. I toggle the Insert key to display a block cursor so that I can locate the line. You'd think by now... /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  1 Reply Last reply
                  0
                  • B Bassam Abdul Baki

                    UltraEdit for me.

                    Web - Blog - RSS - Math - BM

                    M Offline
                    M Offline
                    Mustafa Ismail Mustafa
                    wrote on last edited by
                    #9

                    Programmer's Notepad is also great and so is Notepad++

                    Don't forget to vote if the response was helpful


                    Sig history "dad" Ishmail-Samuel Mustafa Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation

                    1 Reply Last reply
                    0
                    • D Dan Neely

                      Am I blind, or is there no way to enter multiple line text strings into the search/replace dialog?

                      Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                      T Offline
                      T Offline
                      Tim Deveaux
                      wrote on last edited by
                      #10

                      Yes, with the Use: box checked and Regular expressions selected in the dropdown #\n should work.

                      D 1 Reply Last reply
                      0
                      • L l a u r e n

                        i'm still waiting for "current line highlight" in the vs editor :sigh:

                        "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                        Z Offline
                        Z Offline
                        Zdeslav Vojkovic
                        wrote on last edited by
                        #11

                        You could try line ruler from SlickEdit free gadgets[^]. Ticks can be removed, so it looks like normal line highlight

                        L 1 Reply Last reply
                        0
                        • RaviBeeR RaviBee

                          I first type the multiline source and target content in Notepad and then paste them into the search/replace edit controls in VS. Nonprinting chars show up as little boxes (because I happen to use Tahoma as my system font) in these controls but the replacement works properly. /ravi

                          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                          M Offline
                          M Offline
                          Member 96
                          wrote on last edited by
                          #12

                          Nice! I never thought of just trying it to see if it would work.


                          "It's so simple to be wise. Just think of something stupid to say and then don't say it." -Sam Levenson

                          1 Reply Last reply
                          0
                          • Z Zdeslav Vojkovic

                            You could try line ruler from SlickEdit free gadgets[^]. Ticks can be removed, so it looks like normal line highlight

                            L Offline
                            L Offline
                            l a u r e n
                            wrote on last edited by
                            #13

                            i tried it but it slows editing down too much :|

                            "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                            1 Reply Last reply
                            0
                            • T Tim Deveaux

                              Yes, with the Use: box checked and Regular expressions selected in the dropdown #\n should work.

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #14

                              At the cost of wasting too much time tinkering with escape chars to make sure it doesn't do something I don't want. :doh:

                              Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups