Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Creator - Tab Settings - Insert tab character even when configured for spaces

    Tools
    qtcreator tabs
    2
    2
    2352
    Loading More Posts
    • 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.
    • I
      inetknght last edited by

      Using Qt Creator 3.3.2 with Qt 5.4.1 on Ubuntu 14.04

      My preference is to always replace tabs with spaces. When I press tab, it should replace with spaces. It does this just fine.

      Sometimes I'll edit files that are sensitive to tabs though; for example Makefiles or Python or maybe I just want to keep an existing file's tab type.

      I noticed with Python files if I press tab one it will add spaces. If I press it again it will convert the spaces back to a tab. But it doesn't do this for other types of files.

      Is there a way to add a modifier key which disables changing tabs to spaces? Say for example pressing tab alone should respect the editor's tab settings. But pressing tab with a modifier key(s) ignores tab settings and simply inserts a raw tab character?

      The only way I've come up so far is to copy a tab from somewhere and paste it in. However this is obviously inconvenient because it uses up my clipboard and I'd have to have a tab available to copy (which means opening a different file if I wanted to start a new file).

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        This is something you should check with the Qt Creator team. You should bring this to the qt-creator mailing list You'll find there Qt Creator's developers/maintainers (this forum is more user oriented)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post