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. Some more difficult tweaking of the text editor
Forum Updated to NodeBB v4.3 + New Features

Some more difficult tweaking of the text editor

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.0k 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.
  • B Offline
    B Offline
    benenaes
    wrote on last edited by
    #1
    1. How do I enable that public, private and protected keywords are indented with 2 spaces, while I want that normal indentation is 4 spaces ?
    2. How do I disable the mechanism that adds 2 indentations instead of 1 for line continuations ?
      For example:
      void test_func(
      <indent>int arg0)
      instead of:
      void test_func(
      <indent><indent>int arg0)
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Go to Tools->Preferences->C++ and modify the code style visible in the first tab.

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        benenaes
        wrote on last edited by
        #3

        I am working with Qt Creator 2.8.1, so the menus are a bit different. Still, with the provided settings I am not able to enable the aforementioned behaviour. Before considering a newer version: were you able to actually achieve this with the newer settings ? Just to avoid an upgrade in vain ... (and possibly broken plugins)

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          No, I am happy with Qt Creator's default code formatting, so I had no need to change it.

          (Z(:^

          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