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. how do you set up the automatic code formatting?
Qt 6.11 is out! See what's new in the release blog

how do you set up the automatic code formatting?

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

    I am using the ClangFormat plugin found in:
    Preferences > C++ > Code Style > ClangFormat settings.

    I have set it up to use a custom .clang-format file in my project directory:
    formatting mode: full formatting
    format while typing
    format edited code on file save.

    Formatting on file save works perfectly, but the formatting while typing misses lots of formatting mistakes, it barely fixes a thing.

    i don't have the beautifier plugin enabled, but should i be using it in addition to / instead of the other one? why?

    also, how do i set up the formatter found in "Preferences > Text Editor > Behavior > Tabs & indentation / Typing" so that it's not conflicting with my other formatter(s)???... i don't see a way to disable it or tell it to just use the .clang-format file.

    it's weird and confusing to basically have three seperate code auto-formatters in the ide. i tried reading the documentation on them, but it doesn't mention why they're all needed.

    1 Reply Last reply
    1

    • Login

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