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. Issues with indentation in QT Creator
Forum Updated to NodeBB v4.3 + New Features

Issues with indentation in QT Creator

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

    When I press enter after curly braces it indents with 2 spaces
    e88c6c45-120d-4e6c-a909-f06cda6e1ecf-image.png
    Even if I indent manually after semicolon it will change indentation to two spaces
    70ce9a07-8cfb-4b5c-85dc-98f83b603b98-image.png
    25fa6218-8897-4603-9611-299ad68f298a-image.png
    If I write next line and press enter it will start indenting with 4 spaces but after this line with 2
    9c997a2a-7c31-411f-a0fe-4cc7485da251-image.png
    e50474e9-744e-40b1-916c-1f506c664598-image.png
    c62ce150-77f0-4177-adab-c0aac6714dfb-image.png
    I tried looking through preferences but everything looked fine:
    aaccaa27-c941-4e37-90d7-fdeac801d733-image.png 29d75cf5-52fa-4f5b-99c3-a0526a4a165a-image.png
    Does anyone know what I can do to make indentation 4 spaces each time without whatever this behaviour is? I tried googling but to no avail.

    sierdzioS 1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • S Savunraja

      When I press enter after curly braces it indents with 2 spaces
      e88c6c45-120d-4e6c-a909-f06cda6e1ecf-image.png
      Even if I indent manually after semicolon it will change indentation to two spaces
      70ce9a07-8cfb-4b5c-85dc-98f83b603b98-image.png
      25fa6218-8897-4603-9611-299ad68f298a-image.png
      If I write next line and press enter it will start indenting with 4 spaces but after this line with 2
      9c997a2a-7c31-411f-a0fe-4cc7485da251-image.png
      e50474e9-744e-40b1-916c-1f506c664598-image.png
      c62ce150-77f0-4177-adab-c0aac6714dfb-image.png
      I tried looking through preferences but everything looked fine:
      aaccaa27-c941-4e37-90d7-fdeac801d733-image.png 29d75cf5-52fa-4f5b-99c3-a0526a4a165a-image.png
      Does anyone know what I can do to make indentation 4 spaces each time without whatever this behaviour is? I tried googling but to no avail.

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Savunraja make sure your Qt Creator is up to date. This looks like a bug.

      (Z(:^

      S 1 Reply Last reply
      2
      • sierdzioS sierdzio

        @Savunraja make sure your Qt Creator is up to date. This looks like a bug.

        S Offline
        S Offline
        Savunraja
        wrote on last edited by
        #3

        @sierdzio Thanks that helped

        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