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. Qt Creator: Code formatting and error checking
Qt 6.11 is out! See what's new in the release blog

Qt Creator: Code formatting and error checking

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 1.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.
  • J Offline
    J Offline
    JKrig
    wrote on last edited by JKrig
    #1

    Is it possible to configure code block lines in Qt Creator?(like Visual Studio)
    I couldn't find any options about it.

    Plus, there is a little problem about syntax error checking. I assigned value to undeclared variable but no error messages were displayed.
    Is this Qt Creator's issue? I set up debugger correctly and other errors(ex. missing semicolon) are catched well.

    jsulmJ 1 Reply Last reply
    0
    • J JKrig

      Is it possible to configure code block lines in Qt Creator?(like Visual Studio)
      I couldn't find any options about it.

      Plus, there is a little problem about syntax error checking. I assigned value to undeclared variable but no error messages were displayed.
      Is this Qt Creator's issue? I set up debugger correctly and other errors(ex. missing semicolon) are catched well.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JKrig said in Qt Creator: Code formatting and error checking:

      Plus, there is a little problem about syntax error checking. I assigned value to undeclared variable but no error messages were displayed

      It will be displayed as soon as you compile your application.

      "Is it possible to configure code block lines in Qt Creator?" - not sure what you mean but maybe Options/Text Editor/Display/Highlight blocks"?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @JKrig, welcome!

        Plus, there is a little problem about syntax error checking. I assigned value to undeclared variable but no error messages were displayed.

        If you enable the Clang Code Model under Help -> About Plugins, you'll get the warnings inline while editing code.

        Be aware to not enable the Clang Refactoring Plugin for now, it is experimental and has some issues.

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • jsulmJ jsulm

          @JKrig said in Qt Creator: Code formatting and error checking:

          Plus, there is a little problem about syntax error checking. I assigned value to undeclared variable but no error messages were displayed

          It will be displayed as soon as you compile your application.

          "Is it possible to configure code block lines in Qt Creator?" - not sure what you mean but maybe Options/Text Editor/Display/Highlight blocks"?

          J Offline
          J Offline
          JKrig
          wrote on last edited by
          #4

          @jsulm I checked 'Highlight Blocks' option but it wasn't what I want.
          I'm saying about this:
          0_1517632584511_codeblock_lines.png

          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