Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Show special characters in QT editor

Show special characters in QT editor

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
7 Posts 2 Posters 5.8k Views
  • 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.
  • B Offline
    B Offline
    Bremenpl
    wrote on last edited by
    #1

    Hello there,
    Is there a way for QT Creator to show special characters in editor, such as: spaces, tabs, new lines?
    I would appreciate all help.

    lprzenioslo.zut.edu.pl

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Go to Tools->Options->Text Editor->Display tab and check "Visualize whitespace".

      B 1 Reply Last reply
      2
      • Chris KawaC Chris Kawa

        Go to Tools->Options->Text Editor->Display tab and check "Visualize whitespace".

        B Offline
        B Offline
        Bremenpl
        wrote on last edited by
        #3

        @Chris-Kawa Hi, thanks for answer. But this one only shows spaces. It doesnt show tabs and new lines. Btw, it also revealed that Qt creator is turning my tabs into spaces. Can this be changes?

        lprzenioslo.zut.edu.pl

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by Chris Kawa
          #4

          It doesn't show new lines but it does show tabs:
          whitespace visualization in Qt Creator

          You can change whitespace related options in the Tools -> Options -> Text Editor -> Behavior tab. You can choose your preferred indent character, number of characters to indent, behavior of tab key and cleanup on save options.

          B 1 Reply Last reply
          4
          • Chris KawaC Chris Kawa

            It doesn't show new lines but it does show tabs:
            whitespace visualization in Qt Creator

            You can change whitespace related options in the Tools -> Options -> Text Editor -> Behavior tab. You can choose your preferred indent character, number of characters to indent, behavior of tab key and cleanup on save options.

            B Offline
            B Offline
            Bremenpl
            wrote on last edited by
            #5

            @Chris-Kawa I tried doing it like you did, by my tabs are still generating spaces. Here is how I set it:

            0_1530037641963_1821add0-2f47-436a-b5ab-a88dbe6b7ea2-image.png

            Is there something I dont get?

            lprzenioslo.zut.edu.pl

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              If it's indentation for code you're looking for then follow the blue C++ link in your picture.
              On the C++ settings page click "Copy...", give the new style some name, choose it from the "Current settings" combo and then click the "Edit" button. In the dialog that appears you can set tab/spaces options for C++.

              B 1 Reply Last reply
              4
              • Chris KawaC Chris Kawa

                If it's indentation for code you're looking for then follow the blue C++ link in your picture.
                On the C++ settings page click "Copy...", give the new style some name, choose it from the "Current settings" combo and then click the "Edit" button. In the dialog that appears you can set tab/spaces options for C++.

                B Offline
                B Offline
                Bremenpl
                wrote on last edited by
                #7

                @Chris-Kawa Understood. Thank you.

                lprzenioslo.zut.edu.pl

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved