Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18146

Advanced search and replace find not all occurrences

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.2.2
    • Editors
    • None
    • Windows 10 64 bit

    Description

      Let's say you have following code:

      #define SL

      const char * t[ 13 * 3 ] =

      { SL"a", SL"abc", SL"-a", SL"--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL"-as", SL"-jh", SL"-hj", SL"----", SL"122", SL"a", SL"abc", SL"-a", SL"--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL"-as", SL"-jh", SL"-hj", SL"----", SL"122", SL"a", SL"abc", SL"-a", SL"--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL"-as", SL"-jh", SL"-hj", SL"----", SL"122" }

      ;

      And you want to replace SL" with SL( ". But you want to replace it in whole project. Than you are doing:

      Ctrl+F -> Advanced -> Search for SL" -> Search & Replace -> Replace with: SL( " -> Replace.

      And you will get something similar to:

      #define SL

      const char * t[ 13 * 3 ] =

      { SL"a", SL"abc", SL( "-a", SL( "--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL( "-as", SL( "-jh", SL( "-hj", SL( "----", SL"122", SL"a", SL"abc", SL( "-a", SL( "--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL( "-as", SL( "-jh", SL( "-hj", SL( "----", SL"122", SL"a", SL"abc", SL( "-a", SL( "--abc", SL"123", SL"sdf", SL"sdf", SL"l", SL( "-as", SL( "-jh", SL( "-hj", SL( "----", SL"122" }

      ;

      Attachments

        1. bug.png
          bug.png
          91 kB
        2. bug.zip
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            igor.mironchik Igor Mironchik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes