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

Auto-indent selection has problems with digit separators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.10.0
    • C/C++/Obj-C++ Support
    • None
    • Windows

    Description

      Using digit separators and then running auto-indent selection causes the next line to be incorrectly indented.  See example main.cpp, select all text, right-click and press auto-indent selection.  The output is shown in file main_after_auto_indent.cpp.

      Before:

      int32_t var = 1'000;

      std::cout << "var: " << var << std::endl; 

       

      After:

      int32_t var = 1'000;

                  std::cout << "var: " << var << std::endl; 

      Attachments

        1. main_after_auto_indent.cpp
          0.4 kB
        2. main.cpp
          0.4 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              dmbancroft David Bancroft
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes